school/cs142/lab10/util.h

15 lines
348 B
C
Raw Normal View History

2016-04-06 20:45:34 -07:00
#ifndef __UTIL_H__
#define __UTIL_H__
#include <string>
#include <vector>
using namespace std;
void print(const string & in);
vector<string> tokenize(const string & str, const string & delimiters=" ");
bool parse_n_load(const string & input, string & name, string & type,
int & max_hp, int & strength, int & speed, int & magic);
#endif