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 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
question
Computers and Technology, 25.06.2019 01:30
Ashort circuit locator should be periodically run along the cords used in a shop to check for shorts and open circuits. a.)true b.)false
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, 12.03.2021 20:20
question
Mathematics, 12.03.2021 20:20
Questions on the website: 13722361