Hello,
I'm wanting to know whats in the string and where: I've got this code
string s1="HelloWorld";
if(s1[5] = "W")
now then if i want to know if World is in the string. I've tried doing:
the if....
but it errors:
: error C2446: '==' : no conversion from 'char *' to 'const char *(__thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::*'
There is no context in which this conversion is possible: error C2040: '==' : 'const char *(__thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::*' differs in levels of indirection from 'char [2]'
Error executing cl.exe.