#include<windows.h>#include<conio.h>#include<cstdlib>#include<fstream>#include<iomanip>using namespace std;int happy_new_year=0;int main() { system("mode con cols=50 lines=25"); while (1) { for(int i=1; i<=7; i++) printf("\n"); if(happy_new_year%2==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_INTENSITY); else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_INTENSITY); printf(" 庆佳节 财源通四海\n"); printf(" 健 康 \n"); printf(" 迎新春新 喜洋洋\n"); printf(" 年 吉 祥\n"); printf(" 多虎 健 共说此年丰\n"); printf(" 快 虎 康 有 彩 头\n"); printf(" 乐 有 江山澄气象\n"); printf(" 生 财 源 广\n"); printf(" 气 新年生虎气\n"); happy_new_year++; Sleep(200); system("cls"); } return 0;}