动态爱心代码

huzhehan 2023-01-08 18:08:34 2023-01-08 18:11:09 2

#include<bits/stdc++.h>

#include<windows.h>

using namespace std;

int main(){

int time=200;

char sans='*';

while(time==time){

	cout<<"       "<<sans<<sans<<sans<<"   "<<sans<<sans<<sans<<endl;

cout<<"     "<<sans<<sans<<sans<<sans<<sans<<sans<<" "<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"    "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl; 

cout<<"   "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"   "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"    "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"      "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"       "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"         "<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"           "<<sans<<endl;

Sleep(time);

system("cls");

cout<<endl;

cout<<"      "<<sans<<sans<<sans<<sans<<"  "<<sans<<sans<<sans<<sans<<endl;

cout<<"     "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"    "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"   "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"    "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"     "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"       "<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<sans<<endl;

cout<<"         "<<sans<<sans<<sans<<sans<<endl;

Sleep(time);

system("cls");

}

return 0;

}

{{ vote && vote.total.up }}