Showing results 1 to 13 of 13
Search took 0.01 seconds.
Posts Made By: cap2361
Forum: C++ Apr 17th, 2005
Replies: 10
Views: 4,329
Posted By cap2361
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
Posted By cap2361
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
Posted By cap2361
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
Posted By cap2361
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
Posted By cap2361
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
Posted By cap2361
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
Posted By cap2361
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
Posted By cap2361
Re: c++ homework

thx for the excellent help all!!!
Forum: C++ Feb 22nd, 2005
Replies: 4
Views: 4,315
Posted By cap2361
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
Posted By cap2361
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
Posted By cap2361
Re: fstream and saving to a:\

thanks to both!!!

outfile.open("a:\\filename");
this is line where I needed to have \\ to send to a:\
Forum: C++ Feb 19th, 2005
Replies: 4
Views: 2,242
Posted By cap2361
Re: fstream and saving to a:\

thx but it didn't work. still writes to c:\ drive
Forum: C++ Feb 19th, 2005
Replies: 4
Views: 2,242
Posted By cap2361
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...
Showing results 1 to 13 of 13

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 8:17 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC