VS2010 compiles the posted code (except that main() must return a value).
Your code is so C-ish. Why not graduate to C++? Rather than a union of pointers you could use inheritance (two (or more)...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: nuzzle Search: Search took 0.02 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |