how can we check wether there is a new line or not
i used this piece of code
Code:if(char==\n)
how can we check wether there is a new line or not
i used this piece of code
Code:if(char==\n)
Yes, except:
- char can't/shouldn't be the name of a variable.
- You have to put the \n in single quotes, like this: '\n'
thanks