OK I am creating an instance of class 1 Lift Lift1 in another class and I am trying to access its public function using
Lift1.blah;
however its saying Undeclared Identifier.
OK I am creating an instance of class 1 Lift Lift1 in another class and I am trying to access its public function using
Lift1.blah;
however its saying Undeclared Identifier.
-Ti22-
I'm sorry...my psychic abilities are a bit off today. Could you post some code and show us where the problem is? If blah is a function of Lift, then you'll need some () unless you're really trying to get a function pointer.
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
Just to elaborate on pianorain's post,
Lift1.blah();
Environment: OS X, GCC / G++
Codes: Java, C#, C/C++
AOL IM: neandrake, Email: neandrake (at) gmail (dot) com
ok we fixed that now i am getting this problem
LiftSystem error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
LiftSystem fatal error LNK1120: 1 unresolved externals
-Ti22-
Are you missing an int main() somewhere? I couldn't tell you, since you still haven't posted any code.
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein