This commit is contained in:
2026-04-28 00:14:33 +07:00
parent 518296be10
commit f4551ef04a
4 changed files with 42 additions and 0 deletions
+28
View File
@@ -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"
}
View File
Executable
BIN
View File
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
#include <iostream>
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;
}