| | |
How do I bring a class into a function??
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
I want to be able to bring the single instance class into a function of another class without having to take each seperate little variable from the class and inject it in, can I just do something like
void Yeah(class *The Class)
and then pass the class in easily??? Or maybe even in a non pointer form?
void Yeah(class *The Class)
and then pass the class in easily??? Or maybe even in a non pointer form?
you could make one class derived from the other
C++ Syntax (Toggle Plain Text)
class A { ... }; class B : public A { ... };
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- How do I write code for PAC MAN! (C++)
- Open Gl Programing Error (help)... (Game Development)
- Need Help with Hijacked Homepage (Viruses, Spyware and other Nasties)
- PHP Script Translate To VB 6.0 (Visual Basic 4 / 5 / 6)
- list not bring created (C++)
- seg fault that doesnt make sense (C++)
- Scanf problem (C)
- Create Function that prints letters, words and sentences (C++)
Other Threads in the C++ Forum
- Previous Thread: array numbers
- Next Thread: running time
| Thread Tools | Search this Thread |
api array arrays based binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game generator getline givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






