utils.h

// Nathan ELoe 4/11/2013

// utils.h

// Some useful generic utility function

#ifndef UTILS_H

#define UTILS_H

#include <iostream>

#include <string>

using namespace std;

// Desc: Formats a menu of len items

// Pre: len < maximum size of menuOpts

// Post: Outputs a the menu to the screen

void formatMenu(const string menuOpts[], const unsigned int len);

// Desc: Gets numbers in a specific range

// Pre: lbound <= ubound

// Post: prompts for and returns user inputted integer x such that

// lbound <= x <= ubound

int getBoundedInt(const int lbound, const int ubound);

#endif