school/cs142/lab10/util.h

15 lines
348 B
C++

#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