- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 POJ_2453
简单题, 熟悉系统... #include #define RADIX 2int calOneCount(int val){ int temp = val; int count = 0; int preBit = 0; while(temp) { preBit = temp % RADIX; temp /= RADIX; if(preBit
2010-03-31 17:31:00 817
原创 POJ_3100
熟悉系统...#include #include int main(){ int iB, iN, iA = 1; int preDis = 0; int curDis = 0; int flag = 1; while(scanf("%d%d", &iB, &iN) && !(iB == 0 && iN == 0)) { preDis = abs(iB -
2010-03-31 15:55:00 987
原创 POJ_1004
熟悉系统... #include #define MONTH_COUNT 12int main(){float average = 0.0;float sum = 0.0;int i = 0;float inCome = 0.0;for(; i<MONTH_COUNT; i++){scanf("%f", &inCome);sum += i
2010-03-31 13:21:00 670
原创 POJ_1003
熟悉系统... #include #define PRECISION 0.001int main(){ float length = 0.0; float i = 2.0; float sum = 0.0; while(scanf("%f", &length) && length != 0.00) { i = 2.0; sum = 0.0;
2010-03-31 12:23:00 899
原创 POJ_1000
第一道题, 熟悉系统...#include int main(){ int a, b; scanf("%d%d", &a, &b); printf("%d/n", a + b); return 0;}
2010-03-31 12:21:00 1710
原创 just a demo...
/*.h文件,文件名为CMyString.h*/#ifndef _MY_STRING_H__#define _MY_STRING_H__#include #include class MyString1{public:MyString1();MyString1(char *chars);MyString1(char chars[], int size)
2010-03-04 15:53:00 779
原创 矩阵的输入输出demo code...
#include #include #include /*函数声明*//*为矩阵分配空间并且初始化为0*/void allocMemAndInit(int ***matrixName, int rowNum, int columnNum);/*释放空间*/void deallocMem(int **matrixName, int rowNum, int columnNu
2010-03-03 07:51:00 1877
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人