Please label the code so we can easily tell which file is which. You have some code that is not within code bbcode tags; is it supposed to be somewhere? Also, what is the exact error message, including line number?
Please label the code so we can easily tell which file is which. You have some code that is not within code bbcode tags; is it supposed to be somewhere? Also, what is the exact error message, including line number?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Bad style. Put includes inside the guards.Code:#include "B.h" #ifndef A_H #define A_H
Invalid. C is a template, you can't use it without template parameters. What kind of C does it return? A C<int>? A C<std::string>?Code:virtual C EX()=0;
Virtual functions cannot be templates.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law