Class including as modules in c++?

michaelh20

Senior member
Sep 4, 2000
482
0
0
I have a StringTokenizer class that I made and when I try to build it along with a test main(), it says that the class is undeclared. Do I have to do an #include to get this class into the final .exe or can I prototype the class somehow (StringTokenizer::????)?

Irk...

Works eitherway :)
This is so I can get 10 20 30 etc out of "10 20 30 40 50"
 

juiio

Golden Member
Feb 28, 2000
1,433
4
81
You could just use strtok or strntok.

However, since you already did your own, #include the header file where hte class is defined. Example: #include "MyTokenizer.h"