- 我是个高2学过点c语言和python基础的人,目前准备转向正式的语言c++或rust那种,我想问一下到底是选cpp还是rust个人感觉c++太迷惑了过于抽象了rust性能也不必c++差多少就是环境有点难配现在还没有dve cpp那种像cpp的那种神器,但是我相信这些"轮子"肯定会在不久之后被造好的,我的目标是游戏开发听说rust也挺适合的所以我就在考虑学cpp还是rust了因为rust将来或许可以挑战cpp,但是现在的话cpp生态环境还是非常不错的,我还有5年左右时间上社会,求各路程序员提出建议。
- vscode我硬生生的配置了三天然后只差最后一个问题
- (prelaunchTask"build"以中止,退出代码为 1.)
//tasks.json
{
"version":"2.0.0",
"tasks":[
{
"label":"build",
"type":"shell",
"command":"cargo",
"args":["build"]
}
]
}
{
"version":"0.2.0",
"configurations":[
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "cmd",
"args": [
"/C",
"${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe",
"&",
"pause"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole":true,
"preLaunchTask": "build"
},
{
"name":"(gdb) Launch",
"type":"cppdbg",
"request":"launch",
"program":"${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe",
"args":[],
"stopAtEntry":false,
"cwd":"${workspaceFolder}",
"environment":[],
"externalConsole":false,
"MIMode":"gdb",
"miDebuggerPath":"D:\\.cargo\\bin\\rust-gdb.exe",
"setupCommands":[
{
"description":"为 gdb启用整齐打印",
"text":"-enable-pretty-printing",
"ignoreFailures":true
}
],
"preLaunchTask": "build"
}
]
}
希望能帮我看看🙏