All pastes #1357741 Raw Edit

Anonymous

public text v1 · immutable
#1357741 ·published 2009-03-10 22:34 UTC
rendered paste body
//Name: Nicholas Brinley
//Date: 2/22/09
//class: csis 250
//Assign: #2 blocks
//Description: main file for blocks problem

/*-------Includes-------*/
#include "blocks.h"

/*----------Varibles-----------*/
int numBlocks = 0;
int stack[MAX_SIZE][MAX_SIZE];
bool quit = false;

/*----------------Begin Main Function-----------------*/
int main()
{
  numBlocks = getNumBlocks();
  
  fillArray(stack, numBlocks);

  commandHelp();
  
  do{
    quit = readInCmd(stack);
  }while(quit != true);

  printBlocks(stack, numBlocks);
  
  return 0; 
}