commit 6520277de6725fd09a3d04756e9aab0a4a42e6b3 Author: ZennDev1337 Date: Thu Jan 18 11:10:10 2024 +0100 update diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..a09e6ca --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -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 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f053bbe --- /dev/null +++ b/.vscode/launch.json @@ -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" +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..1806133 --- /dev/null +++ b/.vscode/tasks.json @@ -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" +} diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..bb43550 --- /dev/null +++ b/main.cpp @@ -0,0 +1,17 @@ +#include // 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; +} \ No newline at end of file diff --git a/main.exe b/main.exe new file mode 100644 index 0000000..89ce4f7 Binary files /dev/null and b/main.exe differ