C 终端输入 字符123 输出 10进制123
摘要:
#include #define N 20 int main(int argc, const char *argv[]) { char a[N] = {'\0'}; int i = 0; char ch = '\0'; while((ch=getchar())!='\n') { a[i++] = ch; } int cnt = i; int num = 0; for(... 阅读全文
posted @ 2019-05-07 20:29 管理员D 阅读(258) 评论(0) 推荐(0) 编辑