Page 1 of 1

ZOMG RECTANGLES!

Posted: Thu Jul 05, 2007 2:26 am
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.

Posted: Thu Jul 05, 2007 3:07 am
by Larry Laffer
Ooh, this brings back memories of my first ascii game... wonder if I can that floppy? B)

Posted: Thu Jul 05, 2007 6:55 am
by GAMER
I don't care what your name is. Your user is still pronounced : Ward-rick.

B) GAMER