Files
Coleman-Code/COM380/Project1/Project1/main.h
T
Amrit Panesar 52b3c236f2 Towers of hanoi
Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
2015-04-01 18:15:55 -07:00

50 lines
1.1 KiB
C++

/***********************************************
* Project 1 - COM380 - S. Mayer
* By: Amrit Panesar - 77260
* Towers of Hanoi
***********************************************/
#ifdef _WIN32
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN
// no clue what this does, but lets be EXTRALEAN
#endif // !VC_EXTRALEAN
#ifndef WIN32_LEAN_AND_MEAN
// look how lean and mean we are!
#define WIN32_LEAN_AND_MEAN
#endif // !WIN32_LEAN_AND_MEAN
#include <Windows.h>
#elif __linux__
#include <unistd.h>
#include <term.h>
#endif
#ifndef _main_h
#define _main_h
/* just your run of the mill header file */
#include <iostream>
#include <string>
#include <sstream>
#include <conio.h>
#include <vector>
#include "Tower.h"
void pause();
void sleep(int in);
void creepyLoop(string in);
void println(vector<Tower> &tvecs);
void ClearScreen();
int getInput(string prompt);
int movePieces(vector<Tower> &tvecs, int currentStack, int from, int to, int helper, int moveaccumulator);
string centerLine(string in);
string centerLine(int len);
#endif // !_main_h