Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Introduction to Functions: Building a Basic Calculator Program in C++

オープン
#8 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
cpp
領域
cli

調査の方向性

リポジトリに calculator_functions.cpp を作成し、まず4つの演算とユーザー入力フローに関するタスク要件を確認します。さまざまな入力シナリオでプログラムをコンパイルして実行します。選択した演算が期待どおりの結果を生成し、変更が pull request 用に push されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

good first issue hacktoberfest

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:

  1. Fork this repository to your GitHub account.
  2. Clone the forked repository to your local machine: git clone https://github.com/KALIIOWORK/basic_c-_programs.git
  3. Create a new C++ file named calculator_functions.cpp.
  4. Write separate functions for addition, subtraction, multiplication, and division.
  5. Implement a main function that takes user input for the operation and two numbers.
  6. Call the corresponding function based on the user's choice and display the result.
  7. Test your calculator program with different input scenarios to ensure its accuracy.
  8. Compile and run your program to confirm it works as expected.
  9. Commit your changes and push them to your forked repository.
  10. 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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

KALIIOWORK/basic_c-_programs のほかの issue

KALIIOWORK/basic_c-_programs の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。