I have a problem in file separation. I'm using CodeBlocks and these are the codes for each of them for simple code that just print text out. If I include Happy.cpp instead of Happy.h in main.cpp it will work but with Happy.h included shows me this error:
I didn't get your mean but I create 3 different file as I showed Also I tried to use CodeBlocks option to create a new class and also tried to use Add files in Project menu. Should I linked them in another way?