• 大小: 630KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-05-28
  • 语言: C/C++
  • 标签: c++  入门  成语接龙  

资源简介

本人大一c++学习时间于闲暇时所写代码,并没有什么过多的知识点,只是游乐罢了。

资源截图

代码片段和文件信息

#include 
#include 
#include 
#include 
using namespace std;
struct shi{
char a[16];
int b;
};
int main()
{
C:
system(“color 71“);
cout<<“请“;
Sleep(100);
cout<<“输“;
Sleep(100);
cout<<“入“;
Sleep(100);
cout<<“你“;
Sleep(100);
cout<<“的“;
Sleep(100);
cout<<“成“;
Sleep(100);
cout<<“语“;
Sleep(100);
cout<<“汉“;
Sleep(100);
cout<<“语“;
Sleep(100);
cout<<“什“;
Sleep(100);
cout<<“么“;
Sleep(100);
cout<<“语“< goto B;
A:
cout<<“来啊!“< Sleep(900);
cout<<“继续啊!“< Sleep(900);
cout<<“做作啊!“< Sleep(900);
cout<<“互相伤害啊!“< B:
char x[16];
for(int i=0;i<16;i++){
x[i]=‘1‘;
}
cin>>x;
int z=0;
for(int i=0;i<16;i++){
if(x[i]==‘1‘){
break;
}else{
z++;
}
}
ifstream ip;
ip.open(“dataa“ios::in);
fstream op;
op.open(“dataa“ios::app); 
shi n;
ip>>n.a>>n.b;
int c;
do{
c=n.b;
// cout<// cout< if(n.a[0]==x[z-3]&&n.a[1]==x[z-2]){
cout< cout< cout< Sleep(500);
cout<<“我“;
Sleep(100);
cout<<“快“;
Sleep(100);
cout<<“吧“< Sleep(500);
cout<<“渣“;
Sleep(100);
cout<<“渣“;
Sleep(100);
cout<<“!“< goto A;
}
ip>>n.a>>n.b;
if(c==1){
cout<            cout<<“                                     ‘.:;==II;:.‘“<            cout<<“                                ;o#MMMMMMMMMMMMMMM#O=‘“<            cout<<“                          +MMM#############MMMMM8MM;“<            cout<<“                        IMM##############MMi  iMI;IM8“<            cout<<“                       ;MM#############MMO‘    ME;=:M#“<            cout<<“                      ~MM#############MM;      8M;I;IMO“<            cout<<“                      EM#############MM:       E#;I=:EM~“<            cout<<“                     IME######EEEEE#MM;        #8:II;oM=“<            cout<<“                     #M#####MMMMMMMMM8         .M#:IIiMo“<            cout<<“                     :MEE#8O8Ooo++iii‘          .MMIIIMo“<            cout<<“                        ‘M;                         ‘#M+OM8~“<            cout<<“                        =M.    ::;I~   ‘:.           .Mo:::E#‘“<            cout<<“                        8M  ‘:i=;~:I;‘ :OO=:‘               EE“<            cout<<“                        M#  ~=oOoio~:‘ Io8O++o:.            #O“<            cout<<“                       .M8  iI:~~..‘  ~I;oE88OO=‘         ~#M“<            cout<<“                       ;M+ ;i‘    ‘.  .:I‘    Ii;‘     ‘MMO:“<            cout<<“                       iMI‘i;  :.‘.‘  .:.;~   .Ii:      M#“<            cout<<“                       oM;.=:.~  ‘;i+o+;‘ .;~  I==‘     ME“<            cout<<“                       oM::I~.;=;::I~;+++I==:  :ii.    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    2939939  2019-02-05 08:32  成语接龙.exe

     文件      33088  2019-02-05 08:31  dataa

     文件       5137  2018-12-17 00:34  成语接龙.cpp

----------- ---------  ---------- -----  ----

              2978164                    3


评论

共有 条评论