Read this about <iostream.h> vs <iostream>
http://www.devx.com/tips/Tip/14447
I don't think that iostream.h was part of the standard, it was only used during the drafting
process. Nevertheless, it is a bad idea to use it since it is very outdated.
Read this about <iostream.h> vs <iostream>
http://www.devx.com/tips/Tip/14447
I don't think that iostream.h was part of the standard, it was only used during the drafting
process. Nevertheless, it is a bad idea to use it since it is very outdated.
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI
Anything with '.h' doesnt support namespaces. So when you add 'string.h' instead of just 'string', then std::string will not work.Originally Posted by Richie T
There is not the slightest indication that [nuclear energy] will ever be obtainable. It would mean that the atom would have to be shattered at will.
-Albert Einstein, 1932
>So when you add 'string.h' instead of just 'string', then std::string will not work.
Correct, but not because of the std namespace. string.h is a C header with C string handling functions. It never has and likely never will host the string class.
My best code is written with the delete key.