Introduction to Functions: Building a Basic Calculator Program in C++
まだ誰も着手していません。
評価
調査の方向性
リポジトリに calculator_functions.cpp を作成し、まず4つの演算とユーザー入力フローに関するタスク要件を確認します。さまざまな入力シナリオでプログラムをコンパイルして実行します。選択した演算が期待どおりの結果を生成し、変更が pull request 用に push されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Take your C++ skills to the next level by building a versatile calculator program! In this beginner-friendly task, you'll dive into functions, enabling you to create a calculator that can perform various operations based on user input.
Task:
Your challenge is to develop a C++ program that functions as a basic calculator. Create separate functions for addition, subtraction, multiplication, and division operations. Allow the user to choose an operation and input two numbers, then display the result.
Instructions:
- Fork this repository to your GitHub account.
- Clone the forked repository to your local machine:
git clone https://github.com/KALIIOWORK/basic_c-_programs.git - Create a new C++ file named
calculator_functions.cpp. - Write separate functions for addition, subtraction, multiplication, and division.
- Implement a main function that takes user input for the operation and two numbers.
- Call the corresponding function based on the user's choice and display the result.
- Test your calculator program with different input scenarios to ensure its accuracy.
- Compile and run your program to confirm it works as expected.
- Commit your changes and push them to your forked repository.
- Open a pull request with your changes.
Note:
This task will strengthen your understanding of functions and user input handling in C++. Building a functional calculator is a great way to apply your knowledge. Have fun coding! 🧮✨
- 主要言語
- C++
- スター
- 0
- フォーク
- 6
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
KALIIOWORK/basic_c-_programs のほかの issue
-
good first issue hacktoberfest
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
KALIIOWORK/basic_c-_programs#9 · コメント 1 件 ·
-
good first issue hacktoberfest
難易度 1/5 1〜3時間 初心者へのやさしさ 45/100
KALIIOWORK/basic_c-_programs#7 · コメント 1 件 ·
-
good first issue hacktoberfest
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
-
good first issue hacktoberfest
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
KALIIOWORK/basic_c-_programs#3 · コメント 1 件 ·
KALIIOWORK/basic_c-_programs の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main オープンai_reviewed
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ydb-platform/ydb#53974 · コメント 3 件 ·