| Author |
Message |
wardrich lawl catz r lawlz

 Joined: 14 Sep 2002 Posts: 3361 Location: Ontario Canada
|
Posted: Thu Jul 05, 2007 2:26 am
Post subject: ZOMG RECTANGLES! |
|
|
| Code: |
/*
ZOMG RECTANGLES!1!!1!!1
Richard Ward
((Why am I not doing one of the 2384092834 programs that I should be?))
*/
#import <iostream>
using namespace std;
int main()
{
int length, width;
cout << "ZOMG RECTANGLE! Insert in the length and width..." << endl;
cout << "Lenth: ";
cin >> length;
cout << "Width: ";
cin >> width;
system ("cls");
cout << "+";
for (int i = 0; i<=length; i++)
cout << "--";
cout << "+" << endl;
for (int i=0; i<=width; i++)
{
cout << "|";
for (int j=0; j<=length; j++)
cout << " ";
cout << "|" << endl;
}
cout << "+";
for (int i = 0; i<=length; i++)
cout << "--";
cout << "+" << endl;
cout << "ZOMG RECTANGLE!!!" << endl;
system ("pause");
}
|
Okay, so maybe it's not a game... but it was a great way to waste time... I dunno if it's even useful for anything... unless you need some sweet ascii rectangles. |
|
| Back to top |
|
 |
Larry Laffer Moderator

 Joined: 19 Feb 2006 Posts: 3808 Location: Romania
|
Posted: Thu Jul 05, 2007 3:07 am
Post subject: |
|
|
Ooh, this brings back memories of my first ascii game... wonder if I can that floppy?  |
|
| Back to top |
|
 |
GAMER Gaming Demi-god

 Joined: 22 Sep 2002 Posts: 1393 Location: chasing chikeds in the snow!
|
Posted: Thu Jul 05, 2007 6:55 am
Post subject: |
|
|
I don't care what your name is. Your user is still pronounced : Ward-rick.
GAMER |
|
| Back to top |
|
 |
|