Hi, iqra -
1. First, you need to install G++. This should include the standad headers. I would recommend this command (which includes all the C/C++ stuff you're likely to need sooner or later):
Quote:
yum -y install gcc gcc-c++ kernel-devel
|
2. You would use "gcc" to compile a C program:
Quote:
1. vi hello.c
Code:
#include <stdio.h>
int
main (int argc, char *argv[])
{
printf ("Hello world!\n");
return 0;
}
2. gcc -o hello hello.c
3. ./hello
|
3. You would do the same for C++, except (as the others all recommended), you would use the "g++" command instead.
'Hope that helps!