dev c++ project option
i made a project file in dev c++ and i created a header file with a class inside(called pstudent.h) and another file named pmain.cpp, in my pmain.cpp i try to make a object called rod,,like this
but it said function is undeclared, i put the header file in the same project as pmain.cpp...how would i get this to work without putting pstudent.h class inside my pmain.cpp?
This error means that you didn't declare a default constructor (a constructor that takes no parameters), and then tried to use one in your code.
Also, make sure that you
When using a header file that is not of the standard C++ library, you use quotes instead of < >.