Sorry guys for the dummy question, but I want to clarify this.
When I explore c++ code I see that some times it consists of deviding a class on class declaration in a header (*.h) file and class definition in *.cpp file, however sometimes I see that everything is in one (*.cpp) file the same way I would do this in Java or C#.
Then what is the right way to do this in C++ and especialy in .NET? Advantages disadvantages of different aproaches?
Thank you in advance.
When I explore c++ code I see that some times it consists of deviding a class on class declaration in a header (*.h) file and class definition in *.cpp file, however sometimes I see that everything is in one (*.cpp) file the same way I would do this in Java or C#.
Then what is the right way to do this in C++ and especialy in .NET? Advantages disadvantages of different aproaches?
Thank you in advance.