int main()
{
string listnamefirst[100];
string listnamelast[100];
string listcity[100];
long int listzipcode[100];
Type: Posts; User: CasinoDuck
int main()
{
string listnamefirst[100];
string listnamelast[100];
string listcity[100];
long int listzipcode[100];
i think the difference is that i used arrays... maybe thats what your asking?
like this:
string listnamefirst[100];
string listnamelast[100];
string listcity[100];
long int...
instead of the while loop i put this loop in and it worked
for(i=0;i<max;i++,count++){
indata>>namefirst>>namelast>>city>>zipcode;
listnamefirst[i]=namefirst;...
the cause of the loop is the eof is never reached... try "pulling" the info from the file before printing to the screen.