update 2024/10/3
This commit is contained in:
parent
93339f0559
commit
fb3ec35fdf
9
.vscode/tasks.json
vendored
9
.vscode/tasks.json
vendored
@ -2,18 +2,17 @@
|
|||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"type": "cppbuild",
|
"type": "cppbuild",
|
||||||
"label": "C/C++: gcc.exe 生成活动文件",
|
"label": "C/C++: g++.exe 生成活动文件",
|
||||||
"command": "D:/TDM-GCC/bin/gcc.exe",
|
"command": "D:\\TDM-GCC\\bin\\g++.exe",
|
||||||
"args": [
|
"args": [
|
||||||
"-fdiagnostics-color=always",
|
"-fdiagnostics-color=always",
|
||||||
"-g",
|
"-g",
|
||||||
"${file}",
|
"${file}",
|
||||||
"-o",
|
"-o",
|
||||||
"${fileDirname}\\${fileBasenameNoExtension}.exe",
|
"${fileDirname}\\${fileBasenameNoExtension}.exe"
|
||||||
""
|
|
||||||
],
|
],
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "D:/TDM-GCC/bin"
|
"cwd": "${fileDirname}"
|
||||||
},
|
},
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
"$gcc"
|
"$gcc"
|
||||||
|
Binary file not shown.
8
test.cpp
8
test.cpp
@ -3,6 +3,12 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main(){
|
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;
|
return 0;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user