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