生草机
生的是 高考必备 3500 词 的艹。
#include<bits/stdc++.h>
#include<conio.h>
#include<unistd.h>
using namespace std;
string s[3533];
string ss="!....?,,, ";
int main(){
freopen("ttt.txt","r",stdin);
int i=-1,l=ss.length();
while(cin>>s[++i]);
srand(time(NULL));
int f=1;
while(rand()){
int k=rand()%l;
sprint(s[rand()%(i+1)],f);
cout<<ss[k];
f=0;
if(k<6){cout<<endl;f=1;}
}
return 0;
}
关注→拿走(sprint 函数与 ttt.txt)!