Ascii Art

Jan 2, 2011 at 1:23am
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 Jan 2, 2011 at 1:28am
Jan 2, 2011 at 2:44am
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?
Jan 2, 2011 at 3:36am
Jan 2, 2011 at 4:57am
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;
}
Jan 2, 2011 at 11:10am
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
Jan 2, 2011 at 8:06pm
@ 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 Jan 2, 2011 at 8:14pm
Jan 2, 2011 at 8:35pm
.=./ OR \.=.
Clan tag for years now. :)
Jan 2, 2011 at 9:06pm
.=./ OR \.=.
Clan tag for years now. :)

I don't get it :-(
Jan 2, 2011 at 10:08pm
@Gene
Lawn mower. :)
Jan 3, 2011 at 5:05am
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 Jan 3, 2011 at 8:41pm
Jan 5, 2011 at 3:28pm
ROFL THAT IS AMAZING


I agree.
Jan 7, 2011 at 7:13pm
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/
Jan 9, 2011 at 3:04am
I had some ASCII for my program. Unfortunately when I tried to paste it in here, it didn't line up :(.
Jan 9, 2011 at 10:03am
Fbar800, inside [code], [output] or [tt] tags, monospace font is used. Post your ASCII in those.
Jan 9, 2011 at 9:19pm
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!
Jan 10, 2011 at 2:51pm
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?
Jan 10, 2011 at 6:31pm
They probably made a generator to generate ASCII art for a picture, then just fed it a bunch of pictures or something.
Jan 11, 2011 at 12:57am
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
Jan 11, 2011 at 7:04pm
There are a number of "image to ASCII art" generators online.
Topic archived. No new replies allowed.