User profile: hackinghorn

User info
User name:hackinghorn
History
Joined:
Number of posts:16
Latest posts:

Direct access to members of struct
I am new to C++ struct. Suppose I have a struct and a declaration: [code] struct triple{ int x, y, z...

Dynamic memory used in function
He. Thank you. That helps me a lot!

Code that returns the sum of the series 1! +2! +n!
You must return 0 at the end of your int main() function.

Dynamic memory used in function
So you mean I have to have another dummy variable? I have another question. If f(foo *a) has a dynam...

Dynamic memory used in function
Suppose I have the following code (I saw this kind on the Internet): [code] class foo{ public: ...