智能写作

· · 科技·工程

#include <bits/stdc++.h>
using namespace std;
string S[100]={"我","你","他","她","它","我们","你们","他们",
"中国","美国","日本","俄罗斯",
"语文","数学","英语",

};
string Vt[100]={"吃","喝","喜欢","讨厌"}; 
string Vi[100]={"尿"};
string title;
string* getChineseExplainerInfo(string word);
string* getNextWordChanceList();
string* getSentenceByLastsentenceAndTitle(string* Words);
size_t s,vt,vi;
void wait(){
    for(int i=1;i<=1e7;i++)cout<<"";
}
void getAllSize(){
    size_t i;
    for(i=0;S[i]!="";i++);
    s=i;
    for(i=0;Vt[i]!="";i++);
    vt=i;
    for(i=0;Vi[i]!="";i++);
    vi=i;
}
string Generate(){
    getAllSize();
    srand(time(NULL));
    for(int i=1;i<=10;i++){
        int x=rand()%s,y=rand()%vt,z=rand()%s;
        cout<<S[x];wait();
        cout<<Vt[y];wait();
        cout<<S[z]<<(i!=10?",":"。");wait();
    }
}
int main(){
    printf("请输入文章标题: ");
    cin>>title;
    Generate();
    return 0;

}