文章列表
快速排序,quickSort
摘要: #include
#include
using namespace std;
static const int MAX = 5000;
……
归并排序,merge,分治法
摘要: #include
#include
using namespace std;
static const int MAX = 5000;
……
对 问题 1670: 拆分位数 的C语言巧♂妙操作
摘要:我们都知道,[问题 1670: 拆分位数](https://www.dotcpp.com/oj/problem1670.html "问题 1670: 拆分位数") 这个大概意思就是给你一个三位数,然后……
面试题【剑指】:如何不适用循环,整除,条件判断语句实现1+2+3+……n
摘要:> 题目:求1+2+……+n,要求不能使用整除法,for,while,if,else,switch,case等循环关键字及条件判断语句(A?B:C)
当没有这个限制需求的时候,这个题目极其简单,……
C enum(枚举)(转载)
摘要:
枚举是 C 语言中的一种基本数据类型,它可以让数据更简洁,更易读。
枚举语法定义格式为:
enum 枚举名 {枚举元素1,枚举元素2,……};
接下来我们举个例子,比如:一星期有 7……