
-----------------------------------
Craige
Thu Dec 14, 2006 9:19 pm

C++ Compile error with classes and objects.
-----------------------------------
So, I'm still not great with C++, so I'm doing a bunch of pratice programs to get into the language. The one I'm doing now is a MadLibs generator/reader.

I have just started it' so there is very little content to it, but I already have an error with the object I'm using:

main.cpp:38: request for member `WriteLib' in `madLibsHandle()', which is of non-aggregate type `MadLibs ()()'

Relivant code:


main.cpp

14: MadLibs madLibsHandle();
...
38: madLibsHandle.WriteLib();
...

madlibs.h

20: void WriteLib ( void )
21: {
23:   cout 