R
Rahul Gandhi
Hi guys,
I'm trying to run small program helloworld.cpp.
But i'm not getting any output on the stdout
program is
#include<iostream.h>
main(){
cout<<"hello world";
}
#include<iostream>
using namespace std;
main(){
cout<<"hello world";
}
I have compiled the program with g++
g++ helloworld.cpp -o helloworld
../helloworld
It does prints hello world on stdout
compiler I'm using is
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
I'm trying to run small program helloworld.cpp.
But i'm not getting any output on the stdout
program is
#include<iostream.h>
main(){
cout<<"hello world";
}
#include<iostream>
using namespace std;
main(){
cout<<"hello world";
}
I have compiled the program with g++
g++ helloworld.cpp -o helloworld
../helloworld
It does prints hello world on stdout
compiler I'm using is
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)