[Solved][C++] cannot pass non-trivial object of type 'std::__1::string' (aka 'basic_string, allocator >') to variadic function; expected type from format string was 'char *'
Problem
If you want to print a string data type variable in C programming language, you can use the following code:
Read More »[Solved][C++] cannot pass non-trivial object of type 'std::__1::string' (aka 'basic_string, allocator >') to variadic function; expected type from format string was 'char *'