From 60c30e8bfe678c4a00cb98f7bda063431eff36cf Mon Sep 17 00:00:00 2001 From: Braulio Lopez Date: Mon, 9 Sep 2024 11:44:50 -0700 Subject: [PATCH 1/4] Add multiplication feature, closes #1 --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index 08dfcf5..bb74157 100644 --- a/main.cpp +++ b/main.cpp @@ -12,6 +12,8 @@ int main(){ std::cout<< (first+second) << std::endl; std::cout<< "Subtraction: "<< first << "-" << second << "="; std::cout<< (first-second) << std::endl; + std::cout<< "Multiuplication: "<< first << "*" << second << "="; + std::cout<< (first*second) << std::endl; return 0; } \ No newline at end of file From 3785f031160cababce0235e960f2aef733e409cc Mon Sep 17 00:00:00 2001 From: Braulio Lopez Date: Wed, 11 Sep 2024 11:55:49 -0700 Subject: [PATCH 2/4] solved merge conflict, fixed issued #1 --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index bb74157..a93746c 100644 --- a/main.cpp +++ b/main.cpp @@ -14,6 +14,8 @@ int main(){ std::cout<< (first-second) << std::endl; std::cout<< "Multiuplication: "<< first << "*" << second << "="; std::cout<< (first*second) << std::endl; + std::cout<< "Division: "<< first << "/" << second << "="; + std::cout<< (first/second) << std::end return 0; } \ No newline at end of file From 6cc8d6f6027f671ca704ddf00403b0c536fc266e Mon Sep 17 00:00:00 2001 From: BraulioL <157996988+BraulioL@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:11:10 -0700 Subject: [PATCH 3/4] Create main.yml --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5f9e76f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Build C++ + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + install: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y -f build-essential g++ cmake + build: + needs: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build project + run: g++ main.cpp -std=c++17 -o firstIO From 7b371356c1ff7527149ff6ee237917697ede13e0 Mon Sep 17 00:00:00 2001 From: BraulioL <157996988+BraulioL@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:25:46 -0700 Subject: [PATCH 4/4] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a547296..78dc941 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,6 @@ g++ main.cpp and if it compiles successfully, run it with `./a.out` -To exit the container, type `exit` \ No newline at end of file +To exit the container, type `exit` + +[![Build C++](https://github.com/BraulioL/CppMath/actions/workflows/main.yml/badge.svg)](https://github.com/BraulioL/CppMath/actions/workflows/main.yml)