Good I use AIDE. I am trying to make a prototype of the method in the header file, and the execution is in .cpp, but something does not rob (I blame the compiler for the whole curve, although it is possible that I am a curve: D) Here is the code:
hello.cpp:
#include <iostream> #include "Hider.h" using namespace std; int main() { TestClass cl; cout « cl.getAuthor() « endl; } Hider.h:
#pragma once class TestClass{ public: std::string getAuthor(); }; Hider.cpp:
#include "Hider.h" std::string TestClass::getAuthor(){ return "Hello from C++ File :D"; }
<string>not included inhider.cpp, so this file is unlikely to be compiled - how can he know what it is -std::string... - Harry