Ascii Art

Hi, I wasn't sure what to put this under, so I hope I've put it in the right one, anyway, I was bored and decided to test my knowledge of classes of which I recently read about and started working on "Pen Simulator Plus". It's going nicely but I was wondering if anyone could help make an Ascii Pen, I tried and it looked terrible as well as getting messed up with slashes, because I can't remember the one that denotes special characters, Help?
1
2
3
4
    cout << " ________________________" << endl;
    cout << "//  |  |  |  |  |  |  |  |\\-\\" << endl;
    cout << "\__|__|__|__|__|__|__|__|/-/" << endl;
    cout << " \=======" << endl;


EDIT: Please leave ideas for the program too, thanks
Last edited on
The '\' is the escape character. Anyway, when I do ASCII Art, I usually just open Notepad or something similar, draw it, then put it into code then replace all \ with \\.

As for the program...what does it do?
I tried to make a couple... I think they look okay :)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>

int main() {
    using namespace std;
    cout << " _  ___________" << endl;
    cout << "| ||------------\\" << endl;
    cout << "|_||___________ /" << endl;
    
    cout << endl;

    cout << " _  _____________________" << endl;
    cout << "| ||---------------------\\" << endl;
    cout << "| ||--------------------- >" << endl;
    cout << "|_||_____________________/" << endl << endl;
    
    return 0;
}
then put it into code then replace all \ with \\.

Or just keep in the file, and make a cat when you want to display it.
This way you will have wysiwyg
@ firedraco - Thanks, I'll try that, as for the program, its a (semi)realistic virtual pen in console
@ thomas430 - Hey, those look really great, thanks
@ king214 - ROFL THAT IS AMAZING
Last edited on
.=./ OR \.=.
Clan tag for years now. :)
.=./ OR \.=.
Clan tag for years now. :)

I don't get it :-(
@Gene
Lawn mower. :)
Amazing, you've just opened my eyes to a whole new world of ascii
|\_/|
(00)
(><)

EDIT: How do you put code in scroll boxes? I'd like to post the source but it's quite long
Last edited on
ROFL THAT IS AMAZING


I agree.
I've seen Star Wars entirely in ASCII art. I don't know what language it was made in though.
http://www.bytetips.com/some-command-prompt-commands/
I had some ASCII for my program. Unfortunately when I tried to paste it in here, it didn't line up :(.
Fbar800, inside [code], [output] or [tt] tags, monospace font is used. Post your ASCII in those.
I've seen Star Wars entirely in ASCII art. I don't know what language it was made in though.
http://www.bytetips.com/some-command-prompt-commands/


Excuse me, I already said that!
Sorry, I guess it was stupid not to follow your link before posting.
Anyway, how does someone go about making something like that. Do they have to enter every line of output into a program?
They probably made a generator to generate ASCII art for a picture, then just fed it a bunch of pictures or something.
They probably made a generator to generate ASCII art for a picture, then just fed it a bunch of pictures or something.


I did mention in this forum there are quite a few ASCII art artists in this forum and they did not use any generator according to what they post.

That is when I moot the idea of a small project for new C++ developers wanna-be to create something fun and learn C++ in the process.

PS Seriously I think using a Perl, Python or any other scripting language would be easier than C++ for a ASCII art generator :P
There are a number of "image to ASCII art" generators online.
Topic archived. No new replies allowed.