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, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
In the microsoft® access® and microsoft excel® programs, the ribbon contains tabs that are divided into with like tools in them. parts groups containers bunches
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
Why should the technician watch for signs of contamination in the oil when recovering refrigerant from a system
Answers: 3
question
Computers and Technology, 25.06.2019 08:10
The __ is the section of a cpu core that performs arthimetic involving integers and logical operations
Answers: 2
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
English, 05.05.2020 13:14
question
Mathematics, 05.05.2020 13:15
question
Arts, 05.05.2020 13:15
question
History, 05.05.2020 13:15
Questions on the website: 13722363