Search:
Forum
Beginners
how would you call member functions in a
how would you call member functions in a function
devonrevenge
(668)
Oct 31, 2012 at 6:52pm UTC
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
vlad from moscow
(3105)
Oct 31, 2012 at 6:56pm UTC
Pass the object as an argument of the functiion.
devonrevenge
(668)
Nov 1, 2012 at 11:18am UTC
i got a lot of arguments in the function does it matter where i ad it?
vlad from moscow
(3105)
Nov 1, 2012 at 11:29am UTC
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.
Registered users can post here.
Sign in or register
to post.
C++
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs