Question: Jump to level 1 Four integers are read from input as variables id 1 to id 4 . Use push _ back ( ) to
Jump to level
Four integers are read from input as variables id to id Use pushback to add the variables id to id to vector idRoster with the variables id to id in the opposite order the input integers are read.
Ex: If the input is then the output is:
beginarrayllll & & & endarray
cin id;
cin id;
cin id;
cin id;
Your code goes here
for i ; i idRoster.size; i
cout idRoster.ati;
cout endl;
codetest; For code testing only
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
