subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:10
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
You know the right answer?
our program will make use of the POSIX system I/O calls discussed in lectures. That is, you MUST onl...
Questions
question
Mathematics, 17.02.2021 06:30
question
Spanish, 17.02.2021 06:30
question
Mathematics, 17.02.2021 06:30
question
Mathematics, 17.02.2021 06:30
Questions on the website: 13722363