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, 22.06.2019 08:00
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
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
Mathematics, 04.02.2020 06:50
question
Social Studies, 04.02.2020 06:50