摘要: 编程总结3 题目3: 抓老鼠啊~亏了还是赚了? 我的代码: include<stdio.h> int money=0; void search(char a,int p){ if(a=='X'){ if(p==2) p=1; else p=0; printf("U"); }else if(a=='T 阅读全文
posted @ 2019-02-16 10:00 徐卓韩 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 编程总结2 题目2:币值转换 我的代码: include <stdio.h> include <string.h> void printNumber(char s, int i, int len); void printPlace(char s, int, int); int main() { ch 阅读全文
posted @ 2019-02-16 09:59 徐卓韩 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 编程总结1 题目1:打印沙漏 我的代码: include<stdio.h> int n; char a; int l; int sum=1; int rest; int space; int icon; int s; int i; int main() { scanf("%d %c",&n,&a); 阅读全文
posted @ 2019-02-16 09:58 徐卓韩 阅读(74) 评论(0) 推荐(0) 编辑