摘要: #include <iostream>using namespace std;void fun8(int x){ if(x<8) { cout<<x; } else { fun8(x/8); cout<<x%8; }}int main(void){ char ch[10]; int result = 0; cin>>ch; for(int i=0;ch[i]!='\0';i++) { if(ch[i]>='0' && ch[i]<='9') result = res 阅读全文
posted @ 2012-09-22 19:15 SA高处不胜寒 阅读(397) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string.h>using namespace std;/*void change(char ch){ if(ch>='1' && ch<'10') { }}int main(){ char str[] = "12AEE"; for(int i=0;i<strlen(str);i++) { char ch = str[i]; change(ch); } return 0;}void fun1(int n){ switch(n) 阅读全文
posted @ 2012-09-22 14:42 SA高处不胜寒 阅读(314) 评论(0) 推荐(0) 编辑