From d995004a4f2a3aab9c38f70c63a87d095461c4d7 Mon Sep 17 00:00:00 2001 From: jgragg1 Date: Wed, 8 May 2024 19:59:17 -0700 Subject: [PATCH 1/3] lab --- .vscode/launch.json | 7 ++++++ .vscode/tasks.json | 48 ++++++++++++++++++++++++++++++++++++++++ hello-world-joshua-g.cpp | 7 ++++++ 3 files changed, 62 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json create mode 100644 hello-world-joshua-g.cpp diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..787b44f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,7 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..16322ea --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,48 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: gcc.exe build active file", + "command": "C:\\Program Files\\mingw-w64\\mingw64\\bin\\gcc.exe", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}\\${fileBasenameNoExtension}.exe" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": "build", + "detail": "Task generated by Debugger." + }, + { + "type": "cppbuild", + "label": "C/C++: cl.exe build active file", + "command": "cl.exe", + "args": [ + "/Zi", + "/EHsc", + "/nologo", + "/Fe${fileDirname}\\${fileBasenameNoExtension}.exe", + "${file}" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$msCompile" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "Task generated by Debugger." + } + ], + "version": "2.0.0" +} \ No newline at end of file diff --git a/hello-world-joshua-g.cpp b/hello-world-joshua-g.cpp new file mode 100644 index 0000000..d97741d --- /dev/null +++ b/hello-world-joshua-g.cpp @@ -0,0 +1,7 @@ + +#include + +int main() { + std::cout << "Hello World!"; + return 0; +} \ No newline at end of file From 4121f56d0638a126087a5125332e75e5a0fe706e Mon Sep 17 00:00:00 2001 From: jgragg1 Date: Wed, 8 May 2024 20:15:50 -0700 Subject: [PATCH 2/3] no major change --- .vscode/launch.json | 0 .vscode/tasks.json | 48 ++++++++++++++++++++++++++++++++++++++++ hello-world-joshua-g.cpp | 6 +++++ 3 files changed, 54 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json create mode 100644 hello-world-joshua-g.cpp diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..e69de29 diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..16322ea --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,48 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: gcc.exe build active file", + "command": "C:\\Program Files\\mingw-w64\\mingw64\\bin\\gcc.exe", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}\\${fileBasenameNoExtension}.exe" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": "build", + "detail": "Task generated by Debugger." + }, + { + "type": "cppbuild", + "label": "C/C++: cl.exe build active file", + "command": "cl.exe", + "args": [ + "/Zi", + "/EHsc", + "/nologo", + "/Fe${fileDirname}\\${fileBasenameNoExtension}.exe", + "${file}" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$msCompile" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "Task generated by Debugger." + } + ], + "version": "2.0.0" +} \ No newline at end of file diff --git a/hello-world-joshua-g.cpp b/hello-world-joshua-g.cpp new file mode 100644 index 0000000..b94615d --- /dev/null +++ b/hello-world-joshua-g.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "Hello World!"; + return 0; +} \ No newline at end of file From f23383037a2fd5bd787901fce1ae6ea104bfe168 Mon Sep 17 00:00:00 2001 From: jgragg1 Date: Wed, 8 May 2024 20:19:38 -0700 Subject: [PATCH 3/3] test added using namespace std; on line 2 removed std:: on line 3 moved line 3 to line 4 --- hello-world-joshua-g.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hello-world-joshua-g.cpp b/hello-world-joshua-g.cpp index b94615d..7d86fe4 100644 --- a/hello-world-joshua-g.cpp +++ b/hello-world-joshua-g.cpp @@ -1,6 +1,6 @@ #include - +using namespace std; int main() { - std::cout << "Hello World!"; + cout << "Hello World!"; return 0; } \ No newline at end of file