在押 大哥 你随便做个有意思的程序就行了

来源:百度知道 编辑:UC知道 时间:2024/06/20 14:56:47
简单的 有意思就行了 不要那些算面积什么的 你看这做个 我不会 谢谢 了大哥

#include<iostream>
#include<windows.h>
#include<iomanip>
#include<ctime>
using namespace std;
const int n=10;
int count=0;
int main()
{
cout<<"Hello"<<endl;
Sleep(1000);
system("cls");
char* head="@_@";
char* body[]={"|\\|\\","/|/|"};
char* leg[] ={"| \\" ," \\|"};
cout<<" @_@"<<endl;
cout<<"/| |\\"<<endl;
cout<<" | |"<<endl;
Sleep(1000);
system("cls");
while(++count<=n){
cout<<setw(count*2+3)<<head;
if(count==n)
cout<<"It's Over";
cout<<endl;
cout<<setw(count*2+3+(count%2))<<body[(count+1)%2]<<endl;
cout<<setw(count*2+3)<<leg[(count+1)%2];