Forum: C++ Apr 17th, 2005 |
| Replies: 10 Views: 4,329 Re: error checking of user input User is asked to enter name. char player_name[50]; User enters name (example) Charlie. the program gets no errors because charlie is all letters of the alphabet. next user comes along and when asked... |
Forum: C++ Apr 17th, 2005 |
| Replies: 10 Views: 4,329 Re: error checking of user input I usually do not post entire code. will heed your warning. I read up on isalpha and isdigit. I cannot find anything that lets me write a condition statement when using a string array. the string will... |
Forum: C++ Apr 17th, 2005 |
| Replies: 10 Views: 4,329 Re: error checking of user input You are so right about NULL. I have been doing research and have found nothing. If I did find anything it confused me. I am having a hard time finding how to check a string array, everything seems to... |
Forum: C++ Apr 16th, 2005 |
| Replies: 10 Views: 4,329 Re: error checking of user input Thank you so much. It's the little things that I always forget or miss.
This is all that was required to make it work... not equal to NULL
if(player_name != '\0') |
Forum: C++ Apr 16th, 2005 |
| Replies: 10 Views: 4,329 error checking of user input I am having problems with error checking. I want to ensure that the user puts in a name with characters and not use numbers. My thinking is that since player_name is data type char that using (... |
Forum: C Mar 27th, 2005 |
| Replies: 1 Views: 4,695 string compare and fstream I wrote a blackjack game for class and one stipulation is to have a file(fstream). I did get the file stream to work but not like it should. it keeps track of player name and money amount. what i... |
Forum: C++ Feb 27th, 2005 |
| Replies: 3 Views: 2,502 loop and class problem lost!!! I took a homework assignment that worked written in just main and for practice I wanted to make them classes with pointers and have one derived class of base. Although the while loop, for the... |
Forum: C++ Feb 23rd, 2005 |
| Replies: 4 Views: 4,315 |
Forum: C++ Feb 22nd, 2005 |
| Replies: 4 Views: 4,315 Re: c++ homework thx I found the two errors for loop I had a comma instead of semi colon.
yes while loop is buggy and driving me nuts.
I have error warning C4101: 'end' : unreferenced local variable
been going... |
Forum: C++ Feb 22nd, 2005 |
| Replies: 4 Views: 4,315 c++ homework ok, help!!! I'm totally lost. I have to use a file stream program and add names to file, then keep count of file names, then display the count of names entered and the names entered. Use a loop to... |
Forum: C++ Feb 19th, 2005 |
| Replies: 4 Views: 2,242 |
Forum: C++ Feb 19th, 2005 |
| Replies: 4 Views: 2,242 |
Forum: C++ Feb 19th, 2005 |
| Replies: 4 Views: 2,242 fstream and saving to a:\ when I complile this program and then try to run it I get error LNK1201. So I started over and left it complile to c:\ and when I try to run it I get file could not be opened. I think the objective... |