Answer the question
In order to leave comments, you need to log in
C++, function declarations and their memory layout, how are things going?
Good day. C++ language. Function descriptions follow:
1)
class test{
void func(int x);
}
void test::func(int x){
%some_code%
}
class test{
func(int x){
%some_code%
}
}
Answer the question
In order to leave comments, you need to log in
Is example 2 an example of what's best not to do in large projects?
The disadvantage of the second option is that the declaration is inseparable from the implementation. As a result, Ad with inclusions, etc. IMHO.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question