课评: 转出学生归档(王子墨/张立坤/黄俊博)+ 周四班级总结 + 新生章梓皓档案 + C++示例代码

This commit is contained in:
chengzi
2026-09-29 22:43:54 +08:00
parent 6f57dfe67e
commit 73cce4c4f5
116 changed files with 6817 additions and 248 deletions

View File

@@ -0,0 +1,31 @@
#include<bits/stdc++.h>
using namespace std;
int k,x, zm;
string s,fi,w="";
int main() {
getline(cin,s);
cin >> fi;
int m=s.size();
for(int i=0; i<m; i++) {
s[i];
if(isphla(s[i])){
}
if(s[i]==' '||s[i]=='.') {
// 判断w是不是空
if(w != "") {
k++;
if(w==fi) {
cout <<k;
return 0;
}
w="";
}
} else w+=s[i];
}
cout << zm;
return 0;
}