RE: Grammer correcter.
c++ or vb?
in c++ it will be someting like
strcpy(sResult,sCommandArg);
if isAlpha(sResult[0]) {
sResult[0] = toupper(sResult[0] );
}
if sResult[strlen(sResult) - 1] != '.' && sResult[strlen(sResult) - 1] != '?' && sResult[strlen(sResult) - 1] != '!'{
strcat(sResult,'.');
}
probably the first if isn't even necessary
This post was edited on 08-19-2004 at 08:01 AM by Yousef.
|