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, 22.06.2019 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
You know the right answer?
What does the int size = sizeof buffer / sizeof * buffer means ?you. #include #include #include u...
Questions
question
Mathematics, 10.05.2021 20:20
question
Mathematics, 10.05.2021 20:20
question
English, 10.05.2021 20:20
question
Mathematics, 10.05.2021 20:20
Questions on the website: 13722360