3 ms·
The problem with printf and C++ is that you can't do this in general: printf("%d %s", i, obj.convert_to_string()) because the const char* you get from obj
by amelius 3y ago
The problem with printf and C++ is that you can't do this in general:
printf("%d %s", i, obj.convert_to_string())
because the const char* you get from obj.convert_to_string() might be deleted from the heap before printf() is called. And similar issues.