- 博客(3)
- 收藏
- 关注
原创 24点游戏
算法分析 1. 利用随机函数rand()生成1-13的四位随机整数。 2. 定义calc_sign()函数,用来进行运算符的表示。 3. 遍历所有运算结果。#include #include #include #include #include int calc_sign(int a1, int a2, int b) { switch (
2017-04-12 19:00:48
203
原创 求最大公约数(三种方法)
//*********三种方法求最大公约数*********** //主要功能:选择任意一种方法求最大公约数 //**************************************** /* 辗转相除法求最大公约数 */ /////////////////////////////////////////////////////////// //1.
2017-03-21 21:51:53
892
原创 三天打鱼两天晒网(C语言)
#include void main() { int year; int month; int day; float num=0; //月数 int year_num=0; //年数 int runyear_tim
2017-03-15 11:32:52
339
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人