c++颜色控制函数
生日快乐
#include<iostream>
#include<bits/stdc++.h>
#include<windows.h>
#include<algorithm>
#include<cmath>
using namespace std;
int main(){
while(1){
system("color A");
cout<<" |_|_|_|_|"<<endl;
cout<<" _| 生日快乐 |_"<<endl;
cout<<"|_______________|";
Sleep(1000);
system("cls");
system("color B");
cout<<" |_|_|_|_|"<<endl;
cout<<" _| 生日快乐 |_"<<endl;
cout<<"|_______________|";
Sleep(1000);
system("cls");
system("color C");
cout<<" |_|_|_|_|"<<endl;
cout<<" _| 生日快乐 |_"<<endl;
cout<<"|_______________|";
Sleep(1000);
system("cls");
system("color D");
cout<<" |_|_|_|_|"<<endl;
cout<<" _| 生日快乐 |_"<<endl;
cout<<"|_______________|";
Sleep(1000);
system("cls");
system("color E");
cout<<" |_|_|_|_|"<<endl;
cout<<" _| 生日快乐 |_"<<endl;
cout<<"|_______________|";
Sleep(1000);
system("cls");
}
return 0;
}
更多推荐



所有评论(0)