| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
C++ problem!!
regarding to the bubblesort coding in this site URL
describing this code #include <iostream> using std::cout; using std::endl; #include <iomanip> using std::setw; How come my compilerwill only run if only i put <iostream.h> ans not just <iostream> Further more my compiler doesn't seem to compile the code "using" using std::cout; using std::endl; using std::setw; What is happening??? |
|
#2
|
|||
|
|||
|
Which compiler are you using?
Different compilers handle inclusion of header files in different ways. Same with some of that other code - your compiler might not support it. |
|
#3
|
|||
|
|||
|
I am using plato !??
So is it possible if i add these (some additional functions) to my compiler? Do i call these aditional functions as C++ library files? Thank you so much...i am so lost! |
|
#4
|
|||
|
|||
|
Hello,
.h files are the backwards compatibility libraries for c++, however according to the lastest c++0x specification all C++ standard libraries must be in the form of <library_name> without any .h, The reason for this is to differentiate between libraries intended for C and those intended for C++. My advice is to use a new compiler, something like GCC or Intel++ etc... Arash Partow __________________________________________________ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about all things. http://www.partow.net |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > C++ problem!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|