Does my source code shows my own understanding of structures in c++?
<p>I'd like to know if I am in fact in the right direction, I am currently learning the C++ language and reading this book called Jumping into C++ by Alex Allain and there's a practice problem at the end of the chapter regarding structures, to create a contact book program the user should be able to not just fill out a single structure, but should be able to add new entries, each with a separate name and phone number. Let the user add as many entries as he or she wants—is this easy to do? Add the ability to display all, or some of the entries, letting the user browse the list of entries.</p>

<p>so far below is what I've done, I'd like to know if my source code is in fact right and does it show my understanding about structures and overall c++?</p>

<pre><code>#include "stdafx.h"
#include "iostream"
#include "string"

using namespace std;

struct user{
    string name;
    int phone_num;
};


int _tmain(int argc, _TCHAR* argv[])
{
    int input, number;                      // will hold the users input at the beginning of the program
    int counter = 0;                // keep track of the array position
    int const arraySize = 10;       // size of the array
    user new_username[arraySize]; // will hold the users details    
    string name;                    // will hold the users input for the name

    cout &lt;&lt; "CONTACTS\n";
    do{     


        cout &lt;&lt; "+ADD [1] -EXIT[0]";
        cin &gt;&gt; input;


        if(input == 1){

                //cout &lt;&lt; counter;
                cout &lt;&lt; "\nName: ";
                cin &gt;&gt; name;
                new_username[counter].name += name;
                cout &lt;&lt; endl &lt;&lt; "\nPhone: ";
                cin &gt;&gt; number;
                new_username[counter].phone_num =  number;
                counter++;
            //set_user(counter);            

        }
        cout &lt;&lt; "Name    Number\n";
        cout &lt;&lt; "--------------\n";
        for(int j=0; j &lt; arraySize; j++){

                cout &lt;&lt; new_username[j].name;
                cout &lt;&lt; " -- ";
                cout &lt;&lt; new_username[j].phone_num;
                cout &lt;&lt; "\n";
        } 

        cout &lt;&lt; "\n";

    }while(input != 0);


    cout &lt;&lt; "\n";
    system("PAUSE");
    return 0;
}
</code></pre>
