|
-
October 6th, 2005, 03:49 PM
#12
Re: Need help with struct & vector
The one issue with your code is this:
Code:
#include <iostream.h> // Non-standard header
This should be:
Code:
#include <iostream> // standard header
There really is no such standard header as "iostream.h". If you tried to compile your code with the latest version of Visual C++, or if you have an ANSI conformant compiler, you will get errors that "iostream.h" doesn't exist.
The actual header that all ANSI C++ compilers have is <iostream>. Once you include this, then the <iostream> types are in namespace std, similar to vector.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|