update 2024/10/3

This commit is contained in:
Dengrb 2024-10-03 09:09:23 +08:00
parent 93339f0559
commit fb3ec35fdf
4 changed files with 11 additions and 6 deletions

9
.vscode/tasks.json vendored
View File

@ -2,18 +2,17 @@
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe 生成活动文件",
"command": "D:/TDM-GCC/bin/gcc.exe",
"label": "C/C++: g++.exe 生成活动文件",
"command": "D:\\TDM-GCC\\bin\\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
""
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "D:/TDM-GCC/bin"
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"

Binary file not shown.

View File

@ -3,6 +3,12 @@
using namespace std;
int main(){
cout <<"Hello,World"<<endl;
int gc,f,gp;
gc = 11;
f = gc+25;
gp = f+25;
cout <<"格小C岁数:"<<gc<<endl;
cout <<"格小C爸爸岁数:"<<f<<endl;
cout <<"格小C爷爷岁数:"<<gp<<endl;
return 0;
}

BIN
test.exe Normal file

Binary file not shown.