Advertisement

PLZ HELP!!!

Started by August 06, 2002 10:24 PM
45 comments, last by d2king10 22 years, 4 months ago
nope, that made me have many errors
put the includes on different lines
Advertisement
thats wat i have,....no problems, just doesnt work
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.
its in c:/

[edited by - d2king10 on August 7, 2002 1:10:47 PM]
Advertisement
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]
uh, thats wat i have in my first post...i didnt work for me
This works in Dev-C++. And yes, you do need the .h with conio.


    #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