I get
error C2143: syntax error : missing ';' before '*'[/code] at the typedef line (and every other line with the word 'string').
...
//File: prob4.h
#pragma once
//header files + efficiency
#include <string>
#include <iostream>
using std::cin ;
using std::cout ;
using std::endl ;
typedef string * strPtr ;
//Student Class
// stores the name of the student, number of classes,
// and the names of classes taken. Functions provided
// for accessing and mutating the data.
class Student
{
public:
Student ( ) ; //default ctor
Student ( string sName , int numC , string cList[ ] ) ; //parameterized ctor
Student ( Student & cpy ) ; //copy ctor
~Student ( ) ; //dtor
Student operator = ( const Student & rtSide ) ;
void input ( ) ; //input data from user
void output ( ) ; //output data
void resData ( ) ; //reset numClass and classList[]
private:
int numClass ;
string name ;
strPtr classList ;
} ;