subject

What does the int size = sizeof buffer / sizeof * buffer means ?you. #include #include #include using namespace std; int main() { ifstream myfile("ai. txt"); string line, buffer[10]; int size = sizeof buffer / sizeof *buffer; int i = 0; while ( getline(myfile, line) ) { buffer[i] = line; if ( ++i > = size ) { i = 0; } } for ( int j = 0; j < size; j++ ) { cout < < buffer[i] < < "\n"; if ( ++i > = size ) { i = 0; } } return 0; }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 02:30
Write the pseudo code for this problem based on what you learned from the video. the purpose is to design a modular program that asks the user to enter a distance in kilometers, and then converts that distance to miles. the conversion formula is as follows: miles = kilometers x 0.6214
Answers: 3
question
Computers and Technology, 24.06.2019 02:50
Be sure to answer all parts. synthesize the following compound from benzene. a. b. c. d. e. f. reaction [1] conditions: a b c d e f reaction [1] product: draw structure reaction [2] conditions: a b c d e f reaction [2] product: draw structure reaction [3] conditions: a b c d e f reaction [3] product:
Answers: 3
question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
You know the right answer?
What does the int size = sizeof buffer / sizeof * buffer means ?you. #include #include #include u...
Questions
question
Social Studies, 23.08.2019 01:00
question
Physics, 23.08.2019 01:00