摘要: #include <iostream> #include <string> #include <windows.h> using namespace std; int main() { string word; int count = 0; int length = 0; cout << "请输入任 阅读全文
posted @ 2022-08-13 17:05 wshidaboss 阅读(415) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <stdio.h> using namespace std; int main() { char x; cout << "请输入一个字母:" << endl; cin >> x; if (x >= 'a' && x <= 'z') { x = 阅读全文
posted @ 2022-08-13 15:38 wshidaboss 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main(void) { string word; int wordcount = 0; int length = 0; cout << "请输入若干个单词:" << endl; while (1) { if 阅读全文
posted @ 2022-08-13 15:34 wshidaboss 阅读(171) 评论(0) 推荐(0) 编辑