Hello I need to modify this code to have only the first character of whatever word inputted be capitalized. I have this one that shows all the characters capitalized, but I need to modify it using isspace().
#include <stdio.h>
#include <iostream>
using namespace std;
int main ()
{
char c, lastc= ' ' ;
c = cin.get() ;
do
{
cout.put(toupper(c));
c=cin.get();
}
while ( c!= EOF) ;
}