thanks
Type: Posts; User: Allen
thanks
Who can tell me the difference between definition and declaration?
My book said that definition is also declaration, then what's the need for C++ to distinguish definition and declaration?
You can type getchar();it does the same job.
Can anyone explian to me why is there member function in c++?Is it because it would be easier to call functions for variables of the same type?
oh. That' my answer to your question.
oh. That's my answer to your question.
um.. after f(a+1)?
In the code I have given ? Or?
When the condition is not satisfied.
Sorry. my book is in Chinese.
Umm.. What is the meaning of 'terminating condition' ?
:confused:
What about the following code?
void F(int a)
{
F(a+1);
}
Oh. I get it.
When run the code below:
void F()
{
F();
}
EStackOverFlow will appear.
The book says that there is a loop going on. Can anyone explain to me?
But, is it good to read as many books as possible?
oh. now I understand. Do you have any books on functions?
Oh, can you just explain to me how the parameters passed by value in the example? The book says that a copy of the parameter has been made. But I don't understand.
void F(int a)
{
a = 10;
}
Can anyone tell me how to pass on parameters to a function?