Jump to content


Photo

ASCII Question


  • Please log in to reply
7 replies to this topic

#1 jakevfr

jakevfr

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 07 July 2006 - 02:16 PM

how can I make this
Posted Image
Stay like that in the MS-DOS? Everytime I try to compile it I get this
[Warning] unknown escape sequence
20 or 30 of these ^


#2 Erik Bernskiold

Erik Bernskiold

    Jedi In Training

  • Members
  • PipPip
  • 422 posts
  • Gender:Male
  • Location:Gothenburg, Sweden
  • Interests:I love to do booth Web Design and Photography. Nothing beats a nice day out in the nature with the camera gear, getting loads of nice photos. I have been playing the flute for 6 years now and I love it, and I am playing the pipe organ as well. I also like to teach other people the in and outs of software such as the CS3 suite from Adobe.

Posted 07 July 2006 - 03:49 PM

May I ask, what exacly are you moving it in MS-DOS for?

#3 jakevfr

jakevfr

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 07 July 2006 - 04:24 PM

moving it?

#4 Erik Bernskiold

Erik Bernskiold

    Jedi In Training

  • Members
  • PipPip
  • 422 posts
  • Gender:Male
  • Location:Gothenburg, Sweden
  • Interests:I love to do booth Web Design and Photography. Nothing beats a nice day out in the nature with the camera gear, getting loads of nice photos. I have been playing the flute for 6 years now and I love it, and I am playing the pipe organ as well. I also like to teach other people the in and outs of software such as the CS3 suite from Adobe.

Posted 07 July 2006 - 04:55 PM

Sorry if that was unclear, what are you doing in MS-DOS with the art for?

#5 jakevfr

jakevfr

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 07 July 2006 - 08:51 PM

It's just going to be an opening screen sort of thing. And no matter how hard I try it refuses to work... It's quite irritating.

#6 Indigo

Indigo

    Official Alien

  • Members
  • PipPipPip
  • 617 posts
  • Gender:Male
  • Location:Trondheim, Norway
  • Interests:Computing in general, especially design and programming of all kinds.

Posted 08 July 2006 - 08:32 AM

Are you going to use an image, or text? If you're using an image, you have to load it through winapi. There should be an example of doing this in Dev-C++, just edit the WinAnim-code. If you're using c++, do something like this:

void imgtext()
{
// use cout to print all of it.
}

Then just include that in every function. I made a calculator like this once. Everytime you choose a new function, for example "blabla", do this:

void blabla()
{
// load the imgtext-function
system("cls");
// print rest of the function, such as menus.
}

Sorry if this is confusing or completely wrong, I haven't done anything in C++ in about a year or so...

#7 jakevfr

jakevfr

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 10 July 2006 - 12:34 PM

It's going to be text, but just couting it just gives me an error. But thanks for helping me out.

#8 Indigo

Indigo

    Official Alien

  • Members
  • PipPipPip
  • 617 posts
  • Gender:Male
  • Location:Trondheim, Norway
  • Interests:Computing in general, especially design and programming of all kinds.

Posted 17 July 2006 - 05:24 AM

If you use just cout, use "using namespace std;" too. Like this:

#include <iostream>
using namespace std;

void imgtext()
{
	 cout << "text here. Remember using \n when you want to jump to the next line";
}





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users