cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
how would you call member functions in a
how would you call member functions in a function
Oct 31, 2012 at 6:52pm UTC
devonrevenge
(2435)
im trying to use a function in main that calls a specific object to perform its function, just i dont know how to get the object name into scope
Oct 31, 2012 at 6:56pm UTC
vlad from moscow
(6539)
Pass the object as an argument of the functiion.
Nov 1, 2012 at 11:18am UTC
devonrevenge
(2435)
i got a lot of arguments in the function does it matter where i ad it?
Nov 1, 2012 at 11:29am UTC
vlad from moscow
(6539)
It is no matter. But in any case if you are going to call non-static class member function inside another function you shall pass an object to which the call will be applied.
Topic archived. No new replies allowed.