Personally, I think it's better with C -
PHP Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
puts("Hello, world!"); // or printf("Hello, world!\n");
return 0;
}
and personally for C++ -
PHP Code:
#include <iostream>
int main(int argc, char *argv[])
{
std::cout << "Hello, world\n";
return 0;
}
then you can compile both of them with
or
Code:
g++ yourfilename.cpp -o yourfilename # or g++ yourfilename.c -o yourfilename
For IDE, I agreed with Aaron for Code::Blocks, it's nice and elegant, also cross platform(says you want to share the project structure so other people on different platforms can compile it too).
and Anjuta if I want to dealing with Vala + GTK or gtkmm. Anyway, I just use vim for general editing.
Bookmarks