Favorite programming language

Status
Not open for further replies.
Techy Geek said:
#include <iostream.h>
using namespace std;
int main ()
{
cout << "Hello world!\n";
return 0;
}

Try

Code:
#include <iostream>

int main()
{
     std::cout<<"Hello world!\n";
     return 0;
}

What errors are you getting when you try and compile? What compiler/IDE are you using?

Let me know, I'll be able to help because I use C++ all the time.
 
malbuc87uk said:
Try

Code:
#include <iostream>

int main()
{
     std::cout<<"Hello world!\n";
     return 0;
}

What errors are you getting when you try and compile? What compiler/IDE are you using?

Let me know, I'll be able to help because I use C++ all the time.


It has to be his compiler that code is correct.

Just use the line: "using namespace std;" Before declaring main so you don't have to type: "std::cout<<"Hello world!]n"; All you need to type is: "cout << "hello world!\n";
 
Good Day-Urgent

Hello, we are working on a project, we really need Programmers (all) to assist us,the primary laguages are C, C++ and C#, this project
is a free program which is to run in the background of your Operating System and
to monitor processes without hogging much system rsources and to automatically shut down suspicous processes,
if you are interested in joining as a voluntary staff member, please contact me at hextcomm@yahoo.com.

Thank You.
 
never tried delphi but i've learned the basics of the rest. c++ was the most straight forward and easy to learn, and it's powerful to boot.
 
Status
Not open for further replies.
Back
Top Bottom