ifs.getline(buffer, 500, '\n'); //字符達(dá)到256個(gè)或遇到換行就結(jié)束 str = buffer; if (str.empty()) // 如果某行為空,則跳過 { continue; } else { if (isalpha(str[0])) { str[0] = toupper(str[0]); } for (string::size_type index = 1; index != str.size(); index++) ...
www.dbjr.com.cn/article/375...htm 2025-6-7