12 2012 档案
摘要:题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去 掉不满足条件的排列。//题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?#include <stdio.h>void result();main(){ result();}void result(){ int i, j, k; int count,result; count = 0; for(i=1; i <= 4; i+...
阅读全文
摘要:/*逆波兰表达式实现简单的计算器功能*/#include <stdio.h>#include <stdlib.h>#include <ctype.h>#define MAXOP 100 #define NUMBER '0'#define MAXVAL 100#define BUFSIZE 100int getop(char []);void push(double);double pop(void);int getch(void);void ungetch(int);main(){ int type; double op2; char s[M
阅读全文

浙公网安备 33010602011771号