Running in Code Blocks,
void censorSentenceAt (string& msg, int pos)
{
int first;
int last;
first= findSentenceStart(msg,pos);
last= findSentenceStop(msg,pos);
for (int loc = first; loc <= last; loc++)
if (msg[loc]! ='\n')
msg[loc]='@';
}
it keeps saying there is an error with my if statement. An expected ')' before '!' token
Thanks
Last edited on
!= can't have a space between it. It's a single operator.