Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.25 KB

cpp_all.md

File metadata and controls

36 lines (29 loc) · 1.25 KB

C++

About

I prefer this:

  • Machine: Windows 10 + Ubuntu via WSL.
  • Editor - ST3
  • Compiler, Debugger
    • for most (OOP, Boost) projects - CppFastOlympicCoding package in ST3.
    • for Excel projects - use CMake on bash terminal.
    • for Blockchain projects - use eosio.cdt on bash terminal

on Windows

Editor

  • Use the sublime text 3

Compiler

  • Use mingw64 compiler. Compile any .cpp file using
    ..mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin\g++ -std=c++17- -o hello.out hello.cpp

IDE

  • Editor - Sublime
  • Compiler - Use this

on Linux (Ubuntu)

Editor

  • Use the sublime text 3

Compiler

  • Use gcc compiler. Compile any .cpp file using g++ -std=c++17- -o hello.out hello.cpp

Shortcuts

(in ST3 with packages installed)

  • Multi-line comment: type /** and then enter
  • Single-line comment: ctrl + /

References

  • For more refer to this.