I just started learning C++ and I was trying to output a string through printf. It wouldn\'t work because I had to convert the string into a char array first. I googled it a