There were several problems with your posted code. In order of discovery:
Tokenize::Tokenize(char const string [], char Delimiter) {
current_ptr = string;
delimiter = Delimiter;
};
You are trying to assign a const pointer to a non-const member variable. Can't do this; change the definition of the Tokenize ctor to:
Tokenize::Tokenize(char * const string , char Delimiter) {
current_ptr = string;
delimiter = Delimiter;
};
In Tokenize::next() change:
while ((current_ptr)++ != ' ') {}
...to:
while (*(current_ptr++) != ' ') {}
And just below that you have a bad escape sequence. Change:
if ( *current_ptr == ' ' ) { *current_ptr = '/0'; (current_ptr)++; }
...to:
if ( *current_ptr == ' ' ) { *current_ptr = '\0'; (current_ptr)++; }
Once I fixed these errors, your code compiled fine. I didn't get the unresolved external error you were getting, so you must not be compiling tokenize.cpp