diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..1026b6e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,28 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: g++ сборка активного файла", + "command": "/usr/bin/g++", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}/${fileBasenameNoExtension}" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "Задача создана отладчиком." + } + ], + "version": "2.0.0" +} \ No newline at end of file diff --git a/aaaaa.a b/aaaaa.a deleted file mode 100644 index e69de29..0000000 diff --git a/main b/main new file mode 100755 index 0000000..2b6662b Binary files /dev/null and b/main differ diff --git a/main.cpp b/main.cpp index e69de29..e88b679 100644 --- a/main.cpp +++ b/main.cpp @@ -0,0 +1,14 @@ +#include + +int calculate(int a, int b) { + return a + b; +} + +int main() { + // print hello world and test void calculate function + std::cout << "Hello World!" << std::endl; + int result = calculate(1, 2); + std::cout << result << std::endl; + return 0; +} +