How can i display this ascii art?

Hello everyone. I know there have similar questions but i felt i should ask myself since i haven't found the right help. I've been trying to display this ascii art but nothing is working correctly.



Note: I am currently using the visual studio c++.

It's the kind of Ascii art on this page:http://www.network-science.de/ascii/ I tried posting the one i have here, but it's not getting pasted correctly.



Thanks for your time.
for getting pasted correctly use code tags the one that looks like <> like this
1
2
3
4
5
6
                                    .__          
  ____ ___  ________    _____ ______ |  |   ____  
_/ __ \\  \/  /\__  \  /     \\____ \|  | _/ __ \ 
\  ___/ >    <  / __ \|  Y Y  \  |_> >  |_\  ___/ 
 \___  >__/\_ \(____  /__|_|  /   __/|____/\___  >
     \/      \/     \/      \/|__|             \/ 


to be able to do it -the way I thought about it- you have to see how 2 adjacent letters affect each others and save them line by line
pay attention that the number of lines are not identical
Probably for their algorithm they have some pattern which I can't figure it out
if you could find the pattern this will reduce the program's size
some of the "fonts" they use don't get affected by surroundings so it should be easier to implement
What have you tried? What errors did you get?
I have used Raw string literal here. You might use normal srtings, but then you should escape all '\' characters like: "\" → "\\"
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>

int main()
{
std::cout << R"(
 __  __ _ _ _   _ _ _____
|  \/  (_|_) \ | (_)  __ \
| \  / |_ _|  \| |_| |__) |_ _  __ _
| |\/| | | | . ` | |  ___/ _` |/ _` |
| |  | | | | |\  | | |  | (_| | (_| |
|_|  |_|_|_|_| \_|_|_|   \__,_|\__,_|)";
}

 __  __ _ _ _   _ _ _____
|  \/  (_|_) \ | (_)  __ \
| \  / |_ _|  \| |_| |__) |_ _  __ _
| |\/| | | | . ` | |  ___/ _` |/ _` |
| |  | | | | |\  | | |  | (_| | (_| |
|_|  |_|_|_|_| \_|_|_|   \__,_|\__,_|


Last edited on
and you have to pay attention for when the size extends 80 (the maximum line size in the console) take a look at univers font for the word example
Topic archived. No new replies allowed.