C++

Intro
C++ is an extension to the C programming language, developed by Bjarne Stroustrap between 1983 - 1985. C++ was originally called "C with Classes", but was renamed "C++" (++ being the increment by 1 operator). C++ is not platform-dependent; programs using it can be developed on any operating system.
Sample Program
Console
#include <iostream> using namespace std; int main() { cout << "Hello, World!" << endl; // Print "Hello, World!" to the console. return 0; }
Qt GUI
#include <QApplication> #include <QLabel> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel *label = new QLabel("Hello, World!"); label->show(); return app.exec(); }
Colored text
Console
cout << "\x1b[31mHello World\x1b[0m\n";
This would give "Hello World" in red.
Useful Links
GUI Toolkits
There are numerous GUI Toolkits for C++, only a small few are listed here.
- GTK+ (GIMP Toolkit) - http://www.gtk.org/ (GTK+ Also has bindings for quite a few other languages. See here.)
- FLTK (Fast Light Toolkit) - http://www.fltk.org/
- wxWidgets - http://www.wxwidgets.org/
- Qt - http://trolltech.com/
- FOX - http://www.fox-toolkit.org/
IDEs (Integrated Development Environments)
Free IDEs include Bloodshed's Dev-C++ and Code::Blocks.