Thread: C++ Question
View Single Post
  #2  
Old 12-06-2005, 04:12 PM
OrcaDK OrcaDK is offline
Member
 
Join Date: Nov 2004
Posts: 42
Default Re: C++ Question

int Entries;
int Numbers[], Names[];

cout << "How many entries do you have?";
cin >> Entries;
Numbers = new int[Entries];
Names = new int[Entries];
cout << "Please enter all of the names.";
for (int i=0; i<Entries; i++)
cin >> Names[i];
cout << "Please enter the phone numbers.";
for (int i=0; i<Entries; i++)
cin >> setw(Size) >> Numbers[i];
Reply With Quote