DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
NEW! DOSGames.com has been massively upgraded to v2.0 with TONS of new features!
Check out the new design and dozens of new features including online play!


ZOMG RECTANGLES!

 
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3945
Location: Ontario Canada

PostPosted: Thu Jul 05, 2007 2:26 am     Post subject: ZOMG RECTANGLES! Reply with quote

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
Admin
Admin


Offline
Joined: 19 Feb 2006
Posts: 4143
Location: Romania

PostPosted: Thu Jul 05, 2007 3:07 am     Post subject: Reply with quote

Ooh, this brings back memories of my first ascii game... wonder if I can that floppy? Cool
Back to top
GAMER
Gaming Demi-god
Gaming Demi-god


Offline
Joined: 22 Sep 2002
Posts: 1527
Location: chasing chikeds in the snow!

PostPosted: Thu Jul 05, 2007 6:55 am     Post subject: Reply with quote

I don't care what your name is. Your user is still pronounced : Ward-rick.

Cool GAMER
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)