A
avier
Hello,
I was reading the C++ codes and was confused by the following:
double expect (double t, double x, double dt) const {
return x + t*dt;
}
Does the "const" in the member function follow the function name mean
the returned double cannot be modified?
Rookie question, thanks for your help in advance.
I was reading the C++ codes and was confused by the following:
double expect (double t, double x, double dt) const {
return x + t*dt;
}
Does the "const" in the member function follow the function name mean
the returned double cannot be modified?
Rookie question, thanks for your help in advance.