ASCII art for TripleX? (complete begginer!)

Hi guys, I’m a complete begginer. At the end of section 25, Gavin asks us to use some ASCII art. I’ve searched online for the ASCII art, but I’m not able to use it in my code. I’ve tried it a number different ways, for example by using the command std:cout << and then typing it, but it doesn’t seem to work that way… HELP would be appreciated! :smiley:

It works that way :sweat_smile:

std::cout<<"\n ********************************************* ";
std::cout<<"\n **                THAT'S  IT!               **";
std::cout<<"\n **                                          **";
std::cout<<"\n ********************************************* ";

Do any line of the picture in a separate line, and do not forget the \n to change lines! Good luck.

Hi Munsa, thanks for the kind reply!
I’m especially having trouble with characters like “” in my strings, which don’t seem to be accepted whenever I try to compile my code… Do you know what might be causing this??

Thanks in advance!

Boeser

Sorry, I meant to say this character: \

The character \ is reserved like the \n for the return line. Try putting two of them (\\) for any \ you want on the picture. (I don’t know if it will work, I haven’t tried it…)

Thank you Munsa! I’ll definitely try that out!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms