I have just started working with MS Visual C++ 2005 Express edition. I have previously used some old C++ (not visual) with objects. My question is, I try using the old header files such as #include "iostream.h " but it returns a fatal error and will not build. Are these no longer supported by VC++ and have their contents been included in the all new "stdafx.h"? If this is the case I will remove anything relating to "iostream.h".
Visual C++ libraries and headers?
It does not matter at all what is supported by VC++ ver.xxxx.
What is really significant -- what is supported by C++ standard.
One of changes is: instead of
#include %26lt;stdio.h%26gt;
you need
#include %26lt;cstdio%26gt;.
Stupid but... new standard...
By the way, mesun1408 is quite right: you need %26lt;%26gt; instead of ""!
Reply:Check the doc... for iostream you should use #include %26lt;iostream%26gt; (without any .h). Beware that the "new" iostream is not the one from "standard c++" but it has also the "old" functionality. I let to you to find out why you don;t need the .h ...:D
Reply:have you tried %26lt;%26gt; instead of quotes?
Reply:Use this instead :
#include %26lt;iostream%26gt;
using namespace std
orange
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment