Hi. I know it's trivial, but when using cout to output stuff, how can you get it to output '\'? Because it seems not to output them because it expects them to be followed by either 'n' or '0' or something else telling it to do something outputtey .
I wanted to make a program that took a string and turned it into big ascii text, for example 'a' would become:
Which would be incredibly annoying, but interesting nonetheless. I've only done this much so far:Code:__ / \ / \ /__/\__\
But this is obviously impared if you can't use any backslashes.Code:int main () { char str [256]; cout<<"Please input the text to be converted to BIG ASCII TEXT:\n\n"; cin.getline (str, 256, '\n'); switch (str[0]) { case 'a': cout<<" __ \n / \ \n / \ \n/__/\__\ \n"; break; } }
I don't really want help with it, because I think I'll learn more working it out for myself.. I just thought it might clear up why I want to use '\'.