C++字符串读入
摘要:
1 int read() 2 { 3 int x=0,f=1;char ch=getchar(); 4 while (ch'9'){if(ch=='-')f=-1;ch=getchar();} 5 while (ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();} 6 return x*f; 7 } 8 in... 阅读全文
posted @ 2018-06-24 15:48 myx12345 阅读(174) 评论(0) 推荐(0) 编辑