相关代码 |
|
#include // 11-2-21.cpp #include void main() { char buf[80], maxWord[20]; int curLen, maxLen = 0, cnt = 0; cout while(cin >> buf) { curLen = strlen(buf); cnt ++; if(curLen > maxLen) { maxLen = curLen; strcpy(maxWord, buf); } } cout cout }
相关资源 |
|