- Solve leetcode problems in C++.
- Feature test of C++.
./compile.sh path/to/filename.cxx- or
Open this directory inVisual Studio Code,
open a cxx file,
and pressCtrl+Shift+Bto build,
or build by menuTerminal->Run tasks->Select tasks begin with g++, g++.exe or cl.exe.
(See NOTE for detail)
The built executable is outputed to ./objs/.
Runthe built executable by./objs/filename- or
Debugwith gdb on command line - or
Debugin Visual Studio Code
BuildorDebugin VSCode on Linux- Build:
g++ - Debug:
gdb
- Build:
BuildorDebugin VSCode on Windows- Build:
g++.exefromMSYS2(MINGW64)orcl.exefromVisual Studio- Tips for build with
g++.exefrom MSYS2:Then addpacman -Syu pacman -Sy mingw64/mingw-w64-x86_64-gcc pacman -Sy mingw64/mingw-w64-x86_64-gdb
C:\msys64\mingw64\usr\bin\to SystemPATH
- Tips for build with
- Debug:
gdb.exe,Visual Studio CPP Debugorwindbg
- Build:
- Try solve it by yourself first!