2018年6月24日

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) 编辑

C++头文件

摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 阅读全文

posted @ 2018-06-24 15:45 myx12345 阅读(115) 评论(0) 推荐(0) 编辑

导航