I\'m trying to print a string the following way:
int main(){ string s(\"bla\"); printf(\"%s \\n\", s); ....... }
but all I
You need to use c_str to get c-string equivalent to the string content as printf does not know how to print a string object.
printf
string s("bla"); printf("%s \n", s.c_str());
Instead you can just do:
string s("bla"); std::cout<