User Tools

Site Tools


programming:cpp

This is an old revision of the document!


C++ Programming

If you are looking for the C programming language, see: C Programming. C++ is a much more complex language than C. C++ is still highly portable, but not as much as C. C++ has the kitchen sink.

Editors

  • vim
  • emacs
  • gedit
  • Geany
  • Visual Studio Code
  • Visual Studio
  • XCode
  • Qt Creator
  • Code::Blocks
  • Eclipse
  • Netbeans
  • CLion

Compilers

  • g++ (On Windows with MSYS2)
  • clang
  • TurboC++ (DOS)

Debuggers

  • gdb

Build tools

  • Make
  • CMake
  • Rake
  • Visual Studio
  • XCode
  • Eclipse

Code examples

Hello world

hello.cpp
#include <iostream>
 
int main() {
  std::cout << "Hello, world!" << std::endl;
}

Command-line arguments

Environment variables

User input

Formatting output

Using tabs, using ASCII borders, formatting hex/binary/money/decimal points

programming/cpp.1623200096.txt.gz · Last modified: 2021/06/09 00:54 by nanodano