Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Introduction to Arrays: Implement a Basic Sorting Algorithm in C++

未关闭
#7 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@vishwa-X 已经在做这个了。

开始于 2023年10月19日。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
cpp

调研方向

创建名为 bubble_sort.cpp 的文件,并从 issue 的 Bubble Sort 要求开始。使用大小各异且输入顺序不同的整数数组编译并运行程序;当每个经过测试的数组都按升序排序时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

good first issue hacktoberfest

Delve into the world of arrays and algorithms with this C++ task! This beginner-level challenge will guide you through implementing a basic sorting algorithm, honing your skills in array manipulation and algorithmic thinking.

Task:
Your challenge is to write a C++ program that sorts an array of integers in ascending order using the Bubble Sort algorithm. Understand the logic behind Bubble Sort and implement it in your program to sort the given array.

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 bubble_sort.cpp.
  4. Write a program that takes an array of integers as input and sorts it using the Bubble Sort algorithm.
  5. Ensure your program works for arrays of varying sizes.
  6. Test your sorting algorithm with different input arrays to validate its correctness.
  7. Compile and run your program to ensure it works correctly.
  8. Commit your changes and push them to your forked repository.
  9. Open a pull request with your changes.

Note:
This task will enhance your understanding of arrays and introduce you to basic sorting algorithms. Bubble Sort is a great starting point! Happy coding! 🚀✨

主要语言
C++
星标
0
派生
6
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

KALIIOWORK/basic_c-_programs 的其他 Issue

查看 KALIIOWORK/basic_c-_programs 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。