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 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
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 09:50
Create a string list. 2. use console.readline() to collect values of firstname, lastname, street, city, state, zip, save them to list. 3. write a simple linq statement, call method uppercasewords() to change first letter to uppercase. 4. create a foreach statment to display the information. public static string uppercasewords(string value) { char[] array = value.tochararray(); if (array.length > = 1) { if (char.islower(array[0])) { array[0] = char.toupper(array[0]); } } for (int i = 1; i < array.length; i++) { if (array[i - 1] == ' ') { if (char.islower(array[i])) { array[i] = char.toupper(array[i]); } } } return new string(array);
Answers: 3
You know the right answer?
What does the int size = sizeof buffer / sizeof * buffer means ?you. #include #include #include u...
Questions
question
Social Studies, 20.12.2019 08:31
question
Mathematics, 20.12.2019 08:31
Questions on the website: 13722363