I read this:
FAQ: Header files, include statements
In main.cpp if i write
#include "Point.h"
#include <iostream>
#include "Point.cpp"//also i add cpp file
comiler gives me:
"'Point' : 'class' type redefinition " error.But i don't understand it.In Point cpp there is no definetion but it gives error.What is wrong here?What is happening while compiling and linking so it gives error.
Thanks.



LinkBack URL
About LinkBacks


