Category : ascii-art

I’m having trouble in understanding some part of this code I’ve found online, its goal is to print ASCII art from a .txt file. To be more accurate, I’m having trouble in undesrstanding the while loop in line 28 which is part of the string function "getFileContents". What’s the meaning of ‘TempLine’? #include <iostream> #include ..

Read more

My desired output looks about like this: ** ** ** ** ** **** **** **** **** **** ****** ****** ****** ****** ****** ******** ******** ******** ******** ******** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ******** ******** ******** ******** ******** ****** ****** ****** ****** ****** **** **** **** **** **** ** ** ** ..

Read more

I created ASCII art with npm cfonts and I want to print it in cpp with std::cout but it won’t display anything. How it should be displayed: This is my ascii art: 3[91m█3[39m3[91m█3[39m3[91m█3[39m3[91m█3[39m3[91m█3[39m3[91m█3[39m3[91m█3[39m3[91m█3[39m3[91m╗3[39m3[91m 3[39m3[31m█3[39m3[31m█3[39m3[31m█3[39m3[31m█3[39m3[31m█3[39m3[31m█3[39m3[31m█3[39m3[31m╗3[39m3[31m 3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m╗3[39m3[34m 3[39m3[94m█3[39m3[94m█3[39m3[94m█3[39m3[94m█3[39m3[94m█3[39m3[94m█3[39m3[94m█3[39m3[94m█3[39m3[94m╗3[39m3[94m 3[39m 3[91m╚3[39m3[91m═3[39m3[91m═3[39m3[91m█3[39m3[91m█3[39m3[91m╔3[39m3[91m═3[39m3[91m═3[39m3[91m╝3[39m3[91m 3[39m3[31m█3[39m3[31m█3[39m3[31m╔3[39m3[31m═3[39m3[31m═3[39m3[31m═3[39m3[31m═3[39m3[31m╝3[39m3[31m 3[39m3[34m█3[39m3[34m█3[39m3[34m╔3[39m3[34m═3[39m3[34m═3[39m3[34m═3[39m3[34m═3[39m3[34m╝3[39m3[34m 3[39m3[94m╚3[39m3[94m═3[39m3[94m═3[39m3[94m█3[39m3[94m█3[39m3[94m╔3[39m3[94m═3[39m3[94m═3[39m3[94m╝3[39m3[94m 3[39m 3[91m 3[39m3[91m 3[39m3[91m 3[39m3[91m█3[39m3[91m█3[39m3[91m║3[39m3[91m 3[39m3[91m 3[39m3[91m 3[39m3[91m 3[39m3[31m█3[39m3[31m█3[39m3[31m█3[39m3[31m█3[39m3[31m█3[39m3[31m╗3[39m3[31m 3[39m3[31m 3[39m3[31m 3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m█3[39m3[34m╗3[39m3[34m 3[39m3[94m 3[39m3[94m ..

Read more