/* Here I will write down some of my answers and comments for the exercises in C ++ primer 4th (Note: I didn't buy an answer book, so it is not guaranteed that it is correct. What do you think is wrong, hope you can tell me)Source codeThe running requirements are the same as those in the book. The pre-compilation and using lines are omitted. If you still don't know what to say, you can ask me, but I am also a beginner and may not know, I know that I am a beginner when I am still studying C ++ Prime. You are welcome to repost it, but please keep the author's name "jiutian Yuling "*/
Int main ()
{
Vector <int> IVC;
Int IA;
While (CIN> IA)
IVC. push_back (IA); // creates an int-type vector object.
Int * PIV = new int [IVC. Size ()]; // dynamically create an int array with the size equal to the IVC size
For (INT n = 0; n! = IVC. Size (); N ++)
PIV [N] = IVC [N];
Cout <Endl;
For (INT n = 0; n! = IVC. Size (); N ++)
Cout <* (PIV + n) <"";
Return 0;
}