Can't really see anything wrong with the code, but the reason for the error may be that you're saving your file(s) (the .cpp & .h),with a lowercase "putra.cpp & putra.h" ,and you try to include it with uppercase "Putra.cpp % Putra.h".

Remember that C++ is a case sensitive language.

If that's not the problem, what error message do you get?

1

C++

124,385 followers

About

Used in many types of software including music players, video games, and many large scale applications.