代碼:#include <iostream>#include <string>#include <vector>#include <cctype>using std::cin;using std::cout;using std::endl;using std::string;using std::vector;int main(){vector<string> s;string word;while(cin >> word ){s.push_back(word);}for (auto word:s)cout << toupper(word) << endl;return 0;}用的是g++編譯器,版本4.9.3謝謝你的幫助??!
為什么編譯toupper()時(shí)說(shuō):對(duì)它的調(diào)用沒(méi)有匹配的函數(shù)?請(qǐng)問(wèn)是怎么回事??
千萬(wàn)里不及你
2023-02-12 14:14:46