From 1e31a4c532817d311cf757a9672c5d2d28899699 Mon Sep 17 00:00:00 2001 From: rogozinay <rogozinay@mpei.ru> Date: Sun, 19 Nov 2023 19:36:45 +0300 Subject: [PATCH] =?UTF-8?q?build:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=B8=D0=B3=D0=BD=D0=BE=D1=80=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 8 +++----- project.cbp | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 4e76e8a..cc8c622 100644 --- a/main.cpp +++ b/main.cpp @@ -5,11 +5,9 @@ using namespace std; int main() { cout << "Enter A and B: " << endl; - int a, b, c; d; - c = a + b; - d = a - b; - count << c; - count << d; + int a, b; + cin >> a >> b; + cout << "A + B = " << a + b << '\n' << "A - B = " << a - b << '\n'; return 0; } diff --git a/project.cbp b/project.cbp index 99bb702..f5f4083 100644 --- a/project.cbp +++ b/project.cbp @@ -32,6 +32,9 @@ <Add option="-Wall" /> <Add option="-fexceptions" /> </Compiler> + <Unit filename=".gitignore"> + <Option target="<{~None~}>" /> + </Unit> <Unit filename="main.cpp" /> <Extensions> <lib_finder disable_auto="1" />