Search Results

Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: cap2361
Forum: C++ Apr 17th, 2005
Replies: 10
Views: 6,697
Posted By cap2361
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: 6,697
Posted By cap2361
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: 6,697
Posted By cap2361
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: 6,697
Posted By cap2361
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: 6,697
Posted By cap2361
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: 5,254
Posted By cap2361
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: 3,644
Posted By cap2361
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
Solved: c++ homework
Views: 5,596
Posted By cap2361
thx for the excellent help all!!!
Forum: C++ Feb 22nd, 2005
Replies: 4
Solved: c++ homework
Views: 5,596
Posted By cap2361
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
Solved: c++ homework
Views: 5,596
Posted By cap2361
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,610
Posted By cap2361
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,610
Posted By cap2361
thx but it didn't work. still writes to c:\ drive
Forum: C++ Feb 19th, 2005
Replies: 4
Views: 2,610
Posted By cap2361
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

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC