Name is an array of 20 objects (Name[20])
ok i changed it to just cin>>Name; but that doesnt get me any farther... now the problem is it wont do anything after i enter a name and press enter... it just goes to the next line (does it make any difference that im using linux??) were i can type more info. here is the code
Code:
void NewGame()
{
system("clear"); //would clrscr() work?
cout<<"what would you like to have your name as?"<<endl;
cin.getline(Name,10, ' ');
cout<<Name;
game();
}
...
void game()
{
cout<<"this far";
if (maplvl != 1);
{
cout<<"im here";
if (maplvl == 2)
{
fin.open("map2.txt", ios::app);
while(!fin.eof());
{
cout<<"im here2";
fin >> szMap[x][y];
cout<<szMap[x][y]<<endl;
x++;
}
mapLoad = true;
}
}
}
im still working with the file input output stuff (its not working either) so the game() function is far from complete.. im just working on getting the program to get that far.
thx