|
-
May 16th, 2004, 01:54 AM
#1
Checking for space in between, HELP!
I am trying to check for a space in between on a full name example. " John V Tank" and this is my code to check the space in between but I am getting an error code:
warning C4390: ';' : empty controlled statement found; is this the intent?
cin.getline(tempName, tempStorageName);
for ( int i = 0; i <=60; i++)
{
if (tempName[i] != ' ');
int count = (count + 1);
}
my intention is to count how many characters on the full name excluding the space in between and if it is more than 25 characters I need to post an error that is why I have the counter >> count. any help thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|