C++ can't use class from another file
问题 I'm C++ by writing small programs. I'm too the point of working with multiple files. I'm stuck on using a class from another file. I made a simple test project to demonstrate my problem. I have 3 files. testheader.h #ifndef __testheader_H_INCLUDED__ // if Node.h hasn't been included yet... #define __testheader_H_INCLUDED__ // #define this so the compiler knows it has been included #include <string> #include <iostream> class testheader { public: testheader(std::string name){} void write(){} };