subject

Can somebody explain me what this code does in a few or one sentence? #include #include using namespace std; int main () { const int num_elements = 8; vector numbers(num_elements); int i = 0; int tmpvalue = 0; cout < < "enter " < < num_elements < < " integer " < < endl; for (i = 0; i < num_elements; ++i) { cout < < "enter value#" < < i+1 < < ": "; cin > > numbers. at(i); } for (i = 0; i < (num_elements /2); ++i) { tmpvalue = numbers. at(i); numbers. at(i) = numbers. at(num_elements - 1 - i); numbers. at(num_elements - 1 - i) = tmpvalue; } system ("pause"); return 0; }

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:30
To display data in a certain manner like alphabetical order is called
Answers: 1
question
Computers and Technology, 21.06.2019 21:00
Is it ok to use a does red wine clean the inside of a computer true or false
Answers: 2
question
Computers and Technology, 22.06.2019 10:00
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Rafael needs to add a title row to a table that he has inserted in word. what should he do? use the alignment options. use the merge and center option for all the cells in the top row. use the merge and center option on the first two cells in the top row. none of the above
Answers: 3
You know the right answer?
Can somebody explain me what this code does in a few or one sentence? #include #include using namesp...
Questions
question
Physics, 29.10.2021 20:10
question
Mathematics, 29.10.2021 20:10
question
Mathematics, 29.10.2021 20:10
question
Social Studies, 29.10.2021 20:20
Questions on the website: 13722367