Thread: Ascii

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    8

    Ascii

    How do i output ascii art such as pictures and such from Chris.com
    i have pasted them into the c++ code file with cout<<"asciiartgoeshere"<endl; but when i compile it the formatting is off adn it is very frustating is there a better way to do this?

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Place the ascii art in a file first using notepad or some other editor, then read the file with c++ using the getline() function, and output each line to the screen.

  3. #3
    Unregistered
    Guest
    You can use puttext or WriteConsoleOutput. If you use gettext or ReadConsoleOutput also, then you can put characters to move on the background.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ASCII character with ASCII value 0 and 32
    By hitesh_best in forum C Programming
    Replies: 4
    Last Post: 07-24-2007, 09:45 AM
  2. Replies: 11
    Last Post: 03-24-2006, 11:26 AM
  3. Office access in C/C++ NOT VC++!! :)
    By skawky in forum C++ Programming
    Replies: 1
    Last Post: 05-26-2005, 01:43 PM
  4. ascii values for keys
    By acid45 in forum C Programming
    Replies: 2
    Last Post: 05-12-2003, 07:13 AM
  5. Checking ascii values of char input
    By yank in forum C Programming
    Replies: 2
    Last Post: 04-29-2003, 07:49 AM