PLZ HELP!!!
quote: Original post by Kamendae
#include <iostream.h>
When will people stop adding .h to C++ standard library headers? There is no .h!!!
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
[edited by - siaspete on August 7, 2002 1:01:21 PM]
Ok, I had this problem too. Everything would compile correctly however it wouldn''t link (or maybe it did - i just know it wouldn''t run). The way I fixed this was by uninstalling Dev-C++. I then installed it in C:, such as C:\DevCpp (exact dir that I installed it in). I think there''s some bug in Dev-C++ that messes up the lib path when you have either a long name or a space in the address, ex: c:\program files\dev-c++\ has a space in it. Try installing it in C:\DevCpp and see if it works. It worked for me.
Hi!
#include <iostream>
int main()
{
std::cout << "hello world!\n";
return 0;
}
This code works perfectlly whit my compiler (Microsoft VC++ 6.0)
Ye I know Microsoft Rulez
[edited by - axodoss on August 7, 2002 1:17:48 PM]
#include <iostream>
int main()
{
std::cout << "hello world!\n";
return 0;
}
This code works perfectlly whit my compiler (Microsoft VC++ 6.0)
Ye I know Microsoft Rulez
[edited by - axodoss on August 7, 2002 1:17:48 PM]
This works in Dev-C++. And yes, you do need the .h with conio.
[edited by - Badone on August 7, 2002 1:34:35 PM]
#include <iostream>#include <conio.h>int main(){ cout << "hello world!\n"; getch(); return 0;}
[edited by - Badone on August 7, 2002 1:34:35 PM]
THIS CODE SHOULD WORK!!!!!
#include <iostream.h>
main()
{
cout<<"Hello World!\n"
return 0;
}
If it doesn''t then your compiler is VERY strange. Make sure it is saved as a ".cpp" or ".cxx" file and that the header file "iostream.h" is included in your include library (IT SHOULD BE).
>>>>>>>>>>>>>>>>>Ilthigore<<<<<<<<<<<<<<<<<
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement