• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Class including as modules in c++?

michaelh20

Senior member
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"
 
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"
 
Back
Top