HDU 2030 漢字統計

  按照提示,學習了漢字機內碼,其實特點就是高位爲1,所以將一個字節轉成整形的時候,會小於0 有個坑查了半天,讀取字符串時不能用scanf,因爲使用scanf的話就讀不到空格了!!!要使用gets!!! #include <stdio.h> #include <iostream> #include <math.h> using namespace std; void main() { int
相關文章
相關標籤/搜索