How to write happy thanksgiving in DOS

November 20, 2010 at 14:44:04
Specs: Windows Vista, 3 Gb
Please help me with this one. I need the code to write "Happy Thanksgiving" in DOS and display it in different colors...Thx for ur help!
Windows Vista 3 GB

See More: How to write happy thanksgiving in DOS

Report •


#1
November 20, 2010 at 16:01:45
Windows Vista
DOS
Pick an operating system first.

How To Ask Questions The Smart Way


Report •

#2
November 21, 2010 at 05:03:53
Here’s some code for you.
………………………………………………………………………………………………..
#include <iostream>
#include <stdlib.h>
void main()
{
// You just need to add one or two lines after these line.
// just open your c/c++ book and find that line which you
// need to type after these lines. Try a little.
}
………………………………………………………………………………………………………………………………
For example, see how I added a line after those lines.
I’m going to add system(“PAUSE”):
……………………………………………………………………………………………………………………………
#include <iostream>
#include <stdlib.h>
void main()
{
// You just need to add one or two lines after these line.
// just open your c/c++ book and find that line which you
// need to type after these lines. Try a little.
system(“PAUSE”);
}
……………………………………………………………………………………………………………………………
Good luck.
......................................................................................................................
_Adnan_

Report •

#3
November 21, 2010 at 08:13:59
#include <iostream>
void main()

That's not good C++. Most compilers let you get away with void main() (probably because it is valid C), but C++'s main() should always return int.

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
November 21, 2010 at 10:10:35
Thanks Razor2.3. I just wanted to make that easy for him/her.

........................................................................................................................

wldctx- Here’s some code for you.
………………………………………………………………………………………………..
#include <iostream>
#include <stdlib.h>
int main()
{
// You just need to add one or two lines after these line.
// just open your c/c++ book and find that line which you
// need to type after these lines. Try a little.

//....................................................................................................
return 0;
}
………………………………………………………………………………………………………………………………
For example, see how I added a line after those lines.
I’m going to add system(“PAUSE”):
……………………………………………………………………………………………………………………………
#include <iostream>
#include <stdlib.h>
int main()
{
// You just need to add one or two lines after these line.
// just open your c/c++ book and find that line which you
// need to type after these lines. Try a little.
system(“PAUSE”);
//.....................................................................................................................
return 0;
}
……………………………………………………………………………………………………………………………
Good luck.
......................................................................................................................
_Adnan_


Report •


Ask Question