This commit is contained in:
Estom
2021-04-11 22:56:56 +08:00
parent 49325d3bdd
commit c1ca282e84
7 changed files with 41 additions and 149 deletions

View File

@@ -1,21 +0,0 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}

5
.vscode/launch.json vendored
View File

@@ -4,9 +4,8 @@
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe - 生成和调试活动文件",
"name": "g++.exe debug",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
@@ -24,7 +23,7 @@
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++.exe 生成活动文件"
"preLaunchTask": "C/C++:build"
}
]
}

79
.vscode/settings.json vendored
View File

@@ -1,79 +0,0 @@
{
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.pythonPath": "C:\\Python\\python.exe",
"files.associations": {
"xstring": "cpp",
"deque": "cpp",
"initializer_list": "cpp",
"list": "cpp",
"vector": "cpp",
"xutility": "cpp",
"regex": "cpp",
"chrono": "cpp",
"iostream": "cpp",
"ostream": "cpp",
"iomanip": "cpp",
"algorithm": "cpp",
"atomic": "cpp",
"cctype": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"exception": "cpp",
"resumable": "cpp",
"fstream": "cpp",
"functional": "cpp",
"future": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"iterator": "cpp",
"limits": "cpp",
"locale": "cpp",
"map": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"numeric": "cpp",
"random": "cpp",
"ratio": "cpp",
"set": "cpp",
"sstream": "cpp",
"stack": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string": "cpp",
"system_error": "cpp",
"thread": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"utility": "cpp",
"xfacet": "cpp",
"xhash": "cpp",
"xiosbase": "cpp",
"xlocale": "cpp",
"xlocbuf": "cpp",
"xlocinfo": "cpp",
"xlocmes": "cpp",
"xlocmon": "cpp",
"xlocnum": "cpp",
"xloctime": "cpp",
"xmemory": "cpp",
"xstddef": "cpp",
"xtr1common": "cpp",
"xtree": "cpp"
},
"git.ignoreLimitWarning": true
}

69
.vscode/tasks.json vendored
View File

@@ -1,46 +1,27 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe 生成活动文件",
"command": "D:\\mingw\\mingw64\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "调试器生成的任务。"
},
{
"type": "cppbuild",
"label": "C/C++: g++.exe 生成活动文件 ver(1)",
"command": "D:\\mingw\\mingw64\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "调试器生成的任务。"
}
],
"version": "2.0.0"
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++:build",
"command": "D:\\mingw\\mingw64\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "编译器: D:\\mingw\\mingw64\\bin\\g++.exe"
}
]
}

View File

@@ -0,0 +1,12 @@
#include<iostream>
#include<vector>
using namespace std;
int main(){
vector<string> vec{"hello", "world","nihao","!"};
for(auto a:vec){
cout<<a<<" ";
}
cout<<endl;
return 0;
}

View File

@@ -2,7 +2,6 @@
- [x] 设计模式复习
- [ ] vscode C++集成开发环境
- [ ] cmake/vs 项目重构
- [ ] 项目重构计划书完成。(等有时间再搞)
- [ ] 制定四月份论文阅读计划

View File

@@ -7,11 +7,12 @@
- 增强可修改性,方便代码进行修改和扩展。
## 2 重构的流程
- [ ] 重读设计模式和架构设计。使用更好的架构和模块设计方案。(给出一个**架构设计说明书**)。
- [ ] 了解重构工具和重构的方法。熟练掌握C++项目重构过程。
- [ ] cmake/vs 项目重构。使用了解。
- [ ] 熟读源代码,对架构设计说明书进行增删修改。完成最终的架构设计说明书。
- [ ] 使用vs对**项目**架构进行重构。
- [ ] 添加测试模块用来对策略和函数效果评估。
> 方案1主要还是重新设计项目把项目内的其他代码赋值黏贴出来。让它成为一个新的能够运行的小项目。
>