Computers and Technology

our program will make use of the POSIX system I/O calls discussed in lectures. That is, you MUST only use open(), close(), read(), write(), lseek(). 2) You are NOT permitted to use any C++ nor C standard I/O library functions nor cin nor cout. Furthermore, you cannot use any C++ nor C standard library functions for string oeprations. 3) You are NOT permitted to reference nor use the size of the input file in your program. 4) Your program will do the following three actions simultaneously after having opened the input text file: a) Read the input file from the beginning of the file to the end of file, character by character. You may only use one character array for storing the characters with maximum array size of 32 (regardless of input file size). b) Read the input file in reverse, that is, backwards from the end of the file, character by character. You may only use one character array for storing the characters with maximum array size of 32 (regardless of input file size). c) Compare each character read from part (a) with that from part (b). If they are the same then print to the screen a zero, otherwise print 1.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:00, michelle7511
Which database model is best used for data warehouse and data mining
Answers: 3
image
Computers and Technology, 23.06.2019 16:00, cravens511peeelg
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
image
Computers and Technology, 23.06.2019 16:00, keyonaemanieevans
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
image
Computers and Technology, 24.06.2019 08:00, Maxxboogie
Can someone work out the answer as it comes up in one of my computer science exams and i don't understand the cryptovariables
Answers: 1
Do you know the correct answer?
our program will make use of the POSIX system I/O calls discussed in lectures. That is, you MUST onl...

Questions in other subjects: