中级守护
我的C++输入下面的代码后无论输什么代码一运行就会跳出来这个代码,谁知道该怎么办?帮帮我吧!
#include<iostream>
#include<windows.h>
#define qdo 262
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
//#include<iostream>
//#include<windows.h>
//using namespace std;
//int main()
//{
// while(1)
// {
// cout<<" → \n";
// cout<<" ()._\n";
// cout<<" *|** \n";
// cout<<"* ! \n";
// cout<<" / ! \n";
// Sleep(500);
// system("Cls");
// cout<<" ↓\n";
// cout<<" () \n";
// cout<<" */* .\n";
// cout<<"* ! *|\n";
// cout<<" / ! \n";
// Sleep(500);
// system("Cls");
// cout<<"↑ \n";
// cout<<"* ()._\n";
// cout<<" *|** \n";
// cout<<" ! \n";
// cout<<" / ! \n";
// Sleep(500);
// system("Cls");
// cout<<" ← \n";
// cout<<"_.() \n";
// cout<<" **?* \n";
// cout<<" ! * \n";
// cout<<" / ! \n";
// Sleep(500);
// system("Cls");
// }
//
// return 0;
//}
#include<iostream>
#include<windows.h>
#define qdo 262
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
using namespace std;
int pai=800,ban=400;
int ting=250;
int cnt=5;
int main()
{
string s="MessageBeep VS. Beep";
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(60);
}
Sleep(3000);
system("Cls");
s="BEGIN.";
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(60);
}
Sleep(1000);
system("Cls");
cout<<"(MessageBeep的攻)\n";
MessageBeep(MB_ICONEXCLAMATION);
cout<<"↑ \n";
cout<<"* ()._\n";
cout<<" *|** \n";
cout<<" ! \n";
cout<<" / ! \n";
Sleep(2000);
while(--cnt>=0)
{
system("Cls");
MessageBeep(MB_ICONHAND);
cout<<" → \n";
cout<<" ()._\n";
cout<<" *|** \n";
cout<<"* ! \n";
cout<<" / ! \n";
Sleep(200);
system("Cls");
Sleep(250);
MessageBeep(MB_OK);
cout<<" ← \n";
cout<<"_.() \n";
cout<<" **?* \n";
cout<<" ! * \n";
cout<<" / ! \n";
Sleep(200);
system("Cls");
Sleep(250);
}
MessageBeep(MB_ICONASTERISK);
cout<<" ↓\n";
cout<<" () \n";
cout<<" */* .\n";
cout<<"* ! *|\n";
cout<<" / ! \n";
Sleep(2000);
cnt=6;
while(--cnt>=0)
{
system("Cls");
MessageBeep(MB_ICONHAND);
cout<<" → \n";
cout<<" ()._\n";
cout<<" *|** \n";
cout<<"* ! \n";
cout<<" / ! \n";
Sleep(200);
system("Cls");
Sleep(250);
MessageBeep(MB_OK);
cout<<" ← \n";
cout<<"_.() \n";
cout<<" **?* \n";
cout<<" ! * \n";
cout<<" / ! \n";
Sleep(200);
system("Cls");
Sleep(150);
MessageBeep(MB_OK);
cout<<" ← \n";
cout<<"_.() \n";
cout<<" **?* \n";
cout<<" ! * \n";
cout<<" / ! \n";
Sleep(250);
system("Cls");
Sleep(150);
}
MessageBeep(MB_ICONHAND);
cout<<" → \n";
cout<<" ()._\n";
cout<<" *|** \n";
cout<<"* ! \n";
cout<<" / ! \n";
Sleep(50);
Sleep(1000);
system("Cls");
cnt=10;
while(--cnt>=0)
{
MessageBeep(MB_ICONHAND);
cout<<" → \n";
cout<<" ()._\n";
cout<<" *|** \n";
cout<<"* ! \n";
cout<<" / ! \n";
Sleep(250);
system("Cls");
Sleep(150);
}
cnt=10;
while(--cnt>=0)
{
MessageBeep(MB_OK);
cout<<" ← \n";
cout<<"_.() \n";
cout<<" **?* \n";
cout<<" ! * \n";
cout<<" / ! \n";
Sleep(250);
system("Cls");
Sleep(150);
}
cnt=10;
while(--cnt>=0)
{
MessageBeep(MB_ICONHAND);
cout<<" → \n";
cout<<" ()._\n";
cout<<" *|** \n";
cout<<"* ! \n";
cout<<" / ! \n";
Sleep(250);
system("Cls");
Sleep(50);
MessageBeep(MB_OK);
cout<<" ← \n";
cout<<"_.() \n";
cout<<" **?* \n";
cout<<" ! * \n";
cout<<" / ! \n";
Sleep(150);
system("Cls");
Sleep(150);
}
MessageBeep(MB_ICONASTERISK);
cout<<" ↓\n";
cout<<" () \n";
cout<<" */* .\n";
cout<<"* ! *|\n";
cout<<" / ! \n";
Sleep(2000);
system("Cls");
MessageBeep(MB_ICONEXCLAMATION);
cout<<"↑ \n";
cout<<"* ()._\n";
cout<<" *|** \n";
cout<<" ! \n";
cout<<" / ! \n";
Sleep(2000);
system("Cls");
cout<<"MISS!\n(Beep的反击:)像你这样的孩子……";
while(1)
{
Beep(qla,ting);
Beep(qla,ting);
Beep(la,ban);
Beep(mi,ban);
Beep(sre,ting);
Sleep(ting);
Beep(sdo,ban);
Beep(do,ban);
Beep(qla,ting);
Beep(do,ban);
Beep(re,ban);//
Beep(qso,ting);
Beep(qso,ting);
Beep(la,ban);
Beep(mi,ban*1.5);
Beep(sre,ting);
Beep(sdo,ban);
Sleep(ting);
Beep(do,ban);
Beep(qla,ting);
Beep(do,ban);
Beep(re,ban);//
Beep(sqfa,ting);
Beep(qfa,ting);
Beep(la,ban);
Beep(mi,ban*1.5);
Beep(sre,ting);
Sleep(ting);
Beep(sdo,ban);
Beep(do,ban);
Beep(qla,ting);
Beep(do,ban);
Beep(re,ban);//
Beep(sfa,ting);
Beep(qfa,ting);
Beep(la,ban);
Beep(mi,ban*1.5);
Beep(sre,ting);
Sleep(ting);
Beep(sdo,ban);
Beep(do,ban);
Beep(qla,ting);
Beep(do,ban);
Beep(re,ban);//
Beep(qla,ting);
Beep(qla,ting);
Beep(la,ban);
Beep(mi,ban);
Beep(sre,ting);
Sleep(ting);
Beep(sdo,ban);
Beep(do,ban);
Beep(qla,ting);
Beep(do,ban);
Beep(re,ban);//
Beep(qso,ting);
Beep(qso,ting);
Beep(la,ban);
Beep(mi,ban*1.5);
Beep(sre,ting);
Beep(sdo,ban);
Sleep(ting);
Beep(do,ban);
Beep(qla,ting);
Beep(do,ban);
Beep(re,ban);//
Beep(sqfa,ting);
Beep(qfa,ting);
Beep(la,ban);
Beep(mi,ban*1.5);
Beep(sre,ting);
Beep(sdo,ban);
Sleep(ting);
Beep(do,ban);
Beep(qla,ting);
Beep(do,ban);
Beep(re,ban);//
Beep(sfa,ting);
Beep(qfa,ting);
Beep(la,ban);
Beep(mi,ban*1.5);
Beep(sre,ting);
Beep(sdo,ban);
Sleep(ting);
Beep(do,ban);
Beep(qla,ting);
Beep(do,ban);
Beep(re,ban);//
break;
}
system("Cls");
cout<<"(MessageBeep的首尾呼应)\n";
Sleep(2000);
cnt=10;
while(--cnt>=0)
{
MessageBeep(MB_ICONHAND);
cout<<" → \n";
cout<<" ()._\n";
cout<<" *|** \n";
cout<<"* ! \n";
cout<<" / ! \n";
Sleep(250);
system("Cls");
Sleep(50);
MessageBeep(MB_OK);
cout<<" ← \n";
cout<<"_.() \n";
cout<<" **?* \n";
cout<<" ! * \n";
cout<<" / ! \n";
Sleep(150);
system("Cls");
Sleep(150);
MessageBeep(MB_ICONASTERISK);
cout<<" ↓\n";
cout<<" () \n";
cout<<" */* .\n";
cout<<"* !!*|\n";
cout<<" / ! \n";
Sleep(150);
system("Cls");
Sleep(150);
MessageBeep(MB_ICONEXCLAMATION);
cout<<"↑ \n";
cout<<"* ()._\n";
cout<<" *|** \n";
cout<<" ! \n";
cout<<" / ! \n";
Sleep(150);
system("Cls");
Sleep(150);
}
MessageBeep(MB_OK);
cout<<" ← \n";
cout<<"_.() \n";
cout<<" **?* \n";
cout<<" ! * \n";
cout<<" / ! \n";
Sleep(2000);
system("Cls");
MessageBeep(MB_ICONEXCLAMATION);
cout<<"↑ \n";
cout<<"* ()._\n";
cout<<" *|** \n";
cout<<" ! \n";
cout<<" / ! \n";
Sleep(2000);
system("Cls");
Sleep(500);
s="END.";
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(60);
}
return 0;
}