// saved from url
// http://www-cs.canisius.edu/PL_TUTORIALS/C++/EXAMPLES/MRD/SRC/parseline.c -->
//---------------------------------- parseline.c -------------------------
#include
#include
#include "parseline.h"
parseline::parseline (char *line)
{
numwords = 0;
parse (line);
}
parseline::parseline ()
{
numwords = 0;
}
void parseline::set (char *line)
{
freeup ();
numwords = 0;
parse (line);
}
parseline::~parseline()
{
freeup();
}
void parseline::freeup ()
{
int i;
for (i=0; i