subject

C++: Read integers from input and store each integer into a vector until -1 is read. Do not store-1 into the vector. Then, output all values in the vector (except the last value) with the last value in the vector added to each value. Output each value on a new line.
Ex: If the input is -24 28-48-1, the output is:
-16
36
4
(I've been trying to use push_back and pop_back but I'm clearly messing up somewhere and I don't know where)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her age and assigns the user’s input to an integer variable named age.
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
How is energy expended in active transport
Answers: 1
You know the right answer?
C++: Read integers from input and store each integer into a vector until -1 is read. Do not store-1...
Questions
Questions on the website: 13722367