C++

From FUKTwiki

Jump to: navigation, search

C++ is a programming language.

It is:

  • Compiled, which means programs written in C++ can be made to run very fast.
  • Mostly compatible with C, its predecessor.
  • Statically typed; variables have a type and can only hold values of that type, or of a subclass.
  • Very popular.
  • Still actively improved by a standard committee.
  • Object-oriented.
  • Platform-independent as long as you stick to the standard library.

[edit] Example Code

#include <iostream>             // std::wcout
#include <wostream>             // <<
#include <locale>               // std::locale
#include <cstdlib>              // EXIT_SUCCESS, EXIT_FAILURE
 
using std::wcout;
using std::locale;
 
int main(int argc, char** argv){
  locale::global(locale(""));
 
  wcout << L"Hello world!\n";
 
  if(wcout){
    return EXIT_SUCCESS;
  } else {
    return EXIT_FAILURE;
  }
}
There is an article about this subject on Wikipedia, the free online encyclopedia.
There is a book about this subject in Wikibooks, the open-content textbooks collection.

[edit] Useful Links

Personal tools
Navigation
FUKT
Toolbox