Like this:
How would I do that?Code:int string; cin>>string; if(string is "lol")
Like this:
How would I do that?Code:int string; cin>>string; if(string is "lol")
You cannot compare int's and strings
if it's strings you want to compare it's this
KurtCode:string some_string; cin>>some_string; if(some_string == "lol")
your string is an int!
char string[100] = "lol" //use this for c style strings
then use strcmp(string,"lol") //defined in <cstring> header