update
This commit is contained in:
commit
6520277de6
5 changed files with 140 additions and 0 deletions
20
.vscode/c_cpp_properties.json
vendored
Normal file
20
.vscode/c_cpp_properties.json
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Win32",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**"
|
||||
],
|
||||
"defines": [
|
||||
"_DEBUG",
|
||||
"UNICODE",
|
||||
"_UNICODE"
|
||||
],
|
||||
"compilerPath": "C:\\msys64\\mingw64\\bin\\gcc.exe",
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "gnu++20",
|
||||
"intelliSenseMode": "windows-gcc-x64"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
57
.vscode/launch.json
vendored
Normal file
57
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "C/C++: Debug",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${fileDirname}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Disassemblierungsvariante auf Intel festlegen",
|
||||
"text": "-gdb-set disassembly-flavor intel",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
],
|
||||
"preLaunchTask": "Debug"
|
||||
},
|
||||
{
|
||||
"name": "C/C++: Release",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${fileDirname}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Disassemblierungsvariante auf Intel festlegen",
|
||||
"text": "-gdb-set disassembly-flavor intel",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
],
|
||||
"preLaunchTask": "Release"
|
||||
}
|
||||
],
|
||||
"version": "2.0.0"
|
||||
}
|
46
.vscode/tasks.json
vendored
Normal file
46
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"tasks": [
|
||||
{
|
||||
"type": "cppbuild",
|
||||
"label": "Debug",
|
||||
"command": "C:\\msys64\\mingw64\\bin\\g++.exe",
|
||||
"args": [
|
||||
"-fdiagnostics-color=always",
|
||||
"-ggdb",
|
||||
"-std=c++20",
|
||||
"-pedantic-errors",
|
||||
"${file}",
|
||||
"-o",
|
||||
"${fileDirname}\\${fileBasenameNoExtension}.exe"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${fileDirname}"
|
||||
},
|
||||
"problemMatcher": ["$gcc"],
|
||||
"group": "build",
|
||||
"detail": "Vom Debugger generierte Aufgabe."
|
||||
},
|
||||
{
|
||||
"type": "cppbuild",
|
||||
"label": "Release",
|
||||
"command": "C:\\msys64\\mingw64\\bin\\g++.exe",
|
||||
"args": [
|
||||
"-fdiagnostics-color=always",
|
||||
"-O2",
|
||||
"-DNDEBUG",
|
||||
"-std=c++20",
|
||||
"-pedantic-errors",
|
||||
"${file}",
|
||||
"-o",
|
||||
"${fileDirname}\\${fileBasenameNoExtension}.exe"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${fileDirname}"
|
||||
},
|
||||
"problemMatcher": ["$gcc"],
|
||||
"group": "build",
|
||||
"detail": "Vom Debugger generierte Aufgabe."
|
||||
}
|
||||
],
|
||||
"version": "2.0.0"
|
||||
}
|
17
main.cpp
Normal file
17
main.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include <iostream> // for std::cout
|
||||
|
||||
// Definition of user-defined function doPrint()
|
||||
void doPrint() // doPrint() is the called function in this example
|
||||
{
|
||||
std::cout << "In doPrint()\n";
|
||||
}
|
||||
|
||||
// Definition of function main()
|
||||
int main()
|
||||
{
|
||||
std::cout << "Starting main()\n";
|
||||
doPrint(); // Interrupt main() by making a function call to doPrint(). main() is the caller.
|
||||
std::cout << "Ending main()\n"; // this statement is executed after doPrint() ends
|
||||
|
||||
return 0;
|
||||
}
|
BIN
main.exe
Normal file
BIN
main.exe
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue