- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 100以内的质因数分解并计算完全平方数
代码价值:用时3天//求100以内的质因数分解,同时计算x!,是否是一个完全平方数//tips:质因数每项都为偶数个,则x就是一个完全平方数//运行后观察并结论:任何 x! 都不是完全平方数(除了0,和1以外)#include //ceil#include //printf#include //malloc#include //memset#includ
2010-02-27 07:40:00 4084 1
原创 Rearrange20100224
/*给定函数fun的功能是计算形参x所指的数组中N个数的平均值(规定所有数均为正数),将所指数组中大于平均数的值的数据移至数组的前部,小于平均数的数据移至x所致数组的后部。平均值作为函数的返回值。例如:有10个正数:46 30 32 40 6 17 45 15 48 26,平均值为:30.500000.移动后的输出为:46 32 40 45 48 30 6 17 15 26 *
2010-02-24 16:02:00 837
原创 控制台输出等腰三角形字符组成的图形
#include #include #include /*print an isosceles triangle控制台输出等腰三角形字符组成的图形 * *********/void printIsoscelesTriangle(){ float H = 12; //triangle height //float TW = 1; //top
2010-02-23 10:38:00 4025
原创 exercise permutation
// stdafx.h : include file for standard system include files,// or project specific include files that are used frequently, but// are changed infrequently//#pragma once#include "targetve
2010-02-03 22:17:00 396
原创 exercise CombinationNoNeighboring
=============stdafx.h===========#pragma once#include "targetver.h"#include #include // TODO: reference additional headers your program requires here#include //use abs true/false
2010-02-03 12:39:00 635
原创 exercise bubble sort
================stdafx.h========================// stdafx.h : include file for standard system include files,// or project specific include files that are used frequently, but// are changed infr
2010-02-02 10:40:00 773 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人