Skip to content

Commit

Permalink
lab2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-anastasiia committed Sep 19, 2024
1 parent e1acadd commit 01f79ac
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 95 deletions.
5 changes: 0 additions & 5 deletions Lab1CPP/CMakeLists.txt

This file was deleted.

4 changes: 0 additions & 4 deletions Lab1CPP/input.txt

This file was deleted.

85 changes: 0 additions & 85 deletions Lab1CPP/lab1.cpp

This file was deleted.

3 changes: 3 additions & 0 deletions Lab2CPP/lab2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ int apply_operator(int a, int b, char op) {
case '/':
if (b == 0) throw std::runtime_error("Division by zero");
return a / b;
default:
throw std::invalid_argument("Invalid operator");
}


}

int evaluate_example(const std::string& example) {
Expand Down
2 changes: 1 addition & 1 deletion LibraryCPP/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define VECTOR_H

#include <cstddef>

#include <stdexcept>
// Vector (dynamic array)
// Stores integer values inside
typedef int Data;
Expand Down

0 comments on commit 01f79ac

Please sign in to comment.