ZOMG RECTANGLES!

Discuss popular GCS tools like ZZT, Megazeux and Adventure Game Studio, as well as programming and other topics related to game design.
Post Reply
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

ZOMG RECTANGLES!

Post by wardrich »

Code: Select all

/*
  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&#40;&#41;
&#123;
  int length, width;
    
  cout << "ZOMG RECTANGLE!  Insert in the length and width..." << endl;
   
  cout << "Lenth&#58; ";
   cin >> length;
   
  cout << "Width&#58; ";
   cin >> width;
   
   
  system &#40;"cls"&#41;;
  
  cout << "+";
  
  for &#40;int i = 0; i<=length; i++&#41;
    cout << "--";
  
  cout << "+" << endl;
  
  for &#40;int i=0; i<=width; i++&#41;
    &#123;
    cout << "|";
    for &#40;int j=0; j<=length; j++&#41;
      cout << "  ";
      
    cout << "|" << endl;
    &#125;
    
    cout << "+";
  for &#40;int i = 0; i<=length; i++&#41;
    cout << "--";
  
  cout << "+" << endl;
  
  cout << "ZOMG RECTANGLE!!!" << endl;
  system &#40;"pause"&#41;;

&#125;
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.
User avatar
Larry Laffer
Admin
Admin
Posts: 4143
Joined: Sun Feb 19, 2006 8:06 am
Location: Romania

Post by Larry Laffer »

Ooh, this brings back memories of my first ascii game... wonder if I can that floppy? B)
<center>
abyss wrote:I don't even know if starcraft 1 was a windows or dos games.
</center>

ModBot™ - Faster than the speed of spam!(and always taking it to where it belongs!)
User avatar
GAMER
Gaming Demi-god
Gaming Demi-god
Posts: 1527
Joined: Sun Sep 22, 2002 4:55 am
Location: chasing chikeds in the snow!

Post by GAMER »

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

B) GAMER
<img src="http://thumbs.deviantart.com/300W-96A09 ... rs_Sig.jpg">

i have a chik magnet...observe!


<MARQUEE BEHAVIOR="slide"><font color="crimson">
[MAGNET]-------------------- :cuccoan: </marquee>
Post Reply