Skip to content

Shawn070/CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

135 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is my CPP workplace.

cppreference mdreference

How to use g++:

Compile one cpp file:

g++ input.cpp -o output

Comiple couple files to a output file:

g++ input1.cpp input2.cpp -o output

About tmux:

Common detailed command: ClickMe Common commands:

in bash

tmux [new -s SessName -n WinName]	# start a new seesion 
tmux a					# retrieve the last session
tmux at [-t SessName]			# retrieve aimed session
tmux ls					# list all the tmux sessions
tmux kill-session -t SessName

in tmux

tmux d					# detach the present session

in tmux after push ctrl+b on keyboard

sessions:

d					# detach the present session
:new					# start a new session
s					# list all the tmux sessions

windows:

c					# start a new win
w					# list all the wins
%					# horizontally segment
"					# vertically segment

code with VSCode:

  1. add extension: Code Runner
  2. add in User Settings:
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"    // use cmd instead of powershell
    "code-runner.runInTerminal": true, //在内置终端运行

    "code-runner.executorMap": {
        "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && \"$fileNameWithoutExt.exe\"",
        "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && \"$fileNameWithoutExt.exe\"",
        //"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
    }

powershell不支持中文路径,因此替换为cmd;MinGW配置gdb太麻烦。

About

self code hosting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors