Forum: C++ Feb 26th, 2008 |
| Replies: 6 Views: 703 The brackets are fine. Add "return 0;" at the end of the main. |
Forum: C++ Feb 21st, 2008 |
| Replies: 10 Views: 857 But I agree that this is not your problem, just a good coding standard to use. |
Forum: C++ Feb 21st, 2008 |
| Replies: 10 Views: 857 They are very simple to use, use #ifndef filename_h and #define filename_h before any code, and then #endif at the very end of the file. It helps to protect against repeated inclusions. |
Forum: C++ Feb 21st, 2008 |
| Replies: 10 Views: 857 You need only to include the header file and then create an instance of that class. If your class is called Foo, you would do:
Foo myClass;
myClass.(all the members should now be present) =... |