Let's say I have a struct that contains a member function:
I define the function elseware in the code. How do I "execute" this function?
The following does not seem to work:
code:<HR>Code:struct foo{ bool deposit(float amount); }
I define the function elseware in the code. How do I "execute" this function?
The following does not seem to work:
code:<HR>Code:<P>int main() { double result; foo person;<P> result = person.deposit(4.5);<P> return 0; }