AI迅剑 2023-04-14 21:13 采纳率: 85.7%
浏览 27
已结题

关于#C++#的问题,如何解决?

额我想用C++做一个关于蔡徐坤打篮球的,开头我已经做好了,就是后面的过程不怎么会编,向大师们请教

#include<bits/stdc++.h>
using namespace std;
string a[1000000]={
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",
    "#####################################################################################################################################",\
    };
void cls(void){
    system("cls");
}
void wait(void){
    for(int i=0;i<999999;i++){
        for(int i=0;i<100;i++){
            cout<<"";
        }
    }
}//等待函数(这不带sleep) 
void g(void){
    wait();
    cls();
    cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<"                                   ";
}//。。。。。。 
void start(void){
    system("mode con cols=100 lines=50");
    system("color f0");
    g();
    cout<<"沈阳全民制作大家好";
    g();
    cout<<"我是练习时长两年半的练习生";
    g();
    cout<<"蔡徐坤!";
    g();
    cout<<"喜欢唱,跳,rap";
    g();
    cout<<"篮球!";
    g();
    cout<<"music!";
    g();
}//开幕雷击函数 
void P(void){
    for(int i=0;i<50;i++){
        cout<<a[i]<<endl;
    }
}
int main(){
    start();
    system("mode con cols=200 lines=123");
    wait();
    wait();
    wait();
    system("color 70");
    P();
    return 0;
}

  • 写回答

1条回答 默认 最新

报告相同问题?

问题事件

  • 系统已结题 4月24日
  • 已采纳回答 4月16日
  • 创建了问题 4月14日