原创 while(get(s))
gets()函數用來從標準輸入設備(鍵盤)讀取字符串直到回車結束, 但回車符 不屬於這個字符串。其調用格式爲: 1 gets(s); 其中s爲字符串變量(字符串數組名或字符串指針)。 gets(s)函數
原创 備份
#include <iostream> #include <algorithm> #include <queue> #include <string> #include <bits/stdc++.h> #include <cstd
gets()函數用來從標準輸入設備(鍵盤)讀取字符串直到回車結束, 但回車符 不屬於這個字符串。其調用格式爲: 1 gets(s); 其中s爲字符串變量(字符串數組名或字符串指針)。 gets(s)函數
#include <iostream> #include <algorithm> #include <queue> #include <string> #include <bits/stdc++.h> #include <cstd