commit 4371fe4d7df4b6b90fac636a8d8197938a7b74d9 Author: MajorLinux Date: Tue Aug 12 23:20:23 2025 -0400 Initial commit diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4447958 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,83 @@ +{ + "version": "0.2.0", + "configurations": [ + + + // { + // "name": "(gdb) Launch", + // "type": "cppdbg", + // "request": "launch", + // "program": "enter program name, for example ${workspaceFolder}/a.out", + // "args": [], + // "stopAtEntry": false, + // "cwd": "${fileDirname}", + // "environment": [], + // "externalConsole": false, + // "MIMode": "gdb", + // "setupCommands": [ + // { + // "description": "Enable pretty-printing for gdb", + // "text": "-enable-pretty-printing", + // "ignoreFailures": true + // }, + // { + // "description": "Set Disassembly Flavor to Intel", + // "text": "-gdb-set disassembly-flavor intel", + // "ignoreFailures": true + // } + // ] + // }, + { + "name": "C/C++: g++ build and debug active file", + "type": "cppdbg", + "request": "launch", + "program": "${fileDirname}/${fileBasenameNoExtension}", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ], + "preLaunchTask": "C/C++: g++ build active file", + "miDebuggerPath": "/usr/bin/gdb" + }, + { + "name": "C/C++: g++-11 build and debug active file", + "type": "cppdbg", + "request": "launch", + "program": "${fileDirname}/${fileBasenameNoExtension}", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ], + "preLaunchTask": "C/C++: g++-11 build active file", + "miDebuggerPath": "/usr/bin/gdb" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..3426c10 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,67 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "C/C++: g++ build active file", + "type": "cppbuild", + "command": "/usr/bin/g++", + "args": [ + "-g", + "${file}", + "-o", + "${fileDirname}/${fileBasenameNoExtension}" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [ + "$gcc" + ], + "detail": "Generated task by GitHub Copilot" + }, + { + "type": "cppbuild", + "label": "C/C++: gcc build active file", + "command": "/usr/bin/gcc", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}/${fileBasenameNoExtension}" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + //"isDefault": true + }, + "detail": "Task generated by Debugger." + }, + { + "type": "cppbuild", + "label": "C/C++: g++-11 build active file", + "command": "/usr/bin/g++-11", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}/${fileBasenameNoExtension}" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": "build", + "detail": "Task generated by Debugger." + } + ] +} \ No newline at end of file diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..4d8863e --- /dev/null +++ b/main.cpp @@ -0,0 +1,7 @@ +#include + +int main() { + std::cout << "Hello, World!" << std::endl; + return 0; +} +// This program prints "Hello, World!" to the console. \ No newline at end of file