Seems to work a lot better using 'getline', Thanks.
Type: Posts; User: Kegs
Seems to work a lot better using 'getline', Thanks.
Sorry like I said, I'm still very new and just read over the first 2 lessons once. I'm not quite sure what a string is that's why I didn't use it, I thought that int would be ok to user here. I'm...
Didn't think about that, added in '<=' and '>=' where unnecessary. Thanks
So I've added in,
int name;
cout<<"/nYour name is: "<< name;
cin<< name;
cin.ignore();
However when I press enter it just goes through the whole program without pausing for me to enter...
Works like a treat, Thanks.
Do you anyway I can solve my second problem?
Hey all, so I'm currently in my last year in school and want to go down the career path of programming. So I decided to begin learning early. I want to learn C++ and have followed lessons 1 and 2 on...