#include<stdio.h>
#include<windows.h>
#include<conio.h>
#include<math.h>
#define N 100
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include<windows.h>
using namespace std;
extern char s_1[]={"☆风向是会转变的,终有一天会吹向更加光亮的地方。所以,带着我的祝福,活的更加从容一些吧。"};
extern char s_2[]={"☆年年今日,灯明如昼。原火不灭,愿人依旧。"};
extern char s_3[]={"☆幸福,好运送给你。天天愉快!"};
extern char s_4[]={"☆我祝你永远健康快乐,平安幸福!生日快乐!"};
extern char s_5[]={"☆祝愿你,乐无边,福无尽。"};
extern char s_6[]={"☆愿你像风,像雨,像阳光。 "};
extern char s_7[]={"☆欲买桂花同载酒...只可惜故人,何日再见呢?"};
extern char s_8[]={"☆ 在夜空所有星星熄灭的时候,所有梦想、所有溪流,都能汇入同一片大海中,那时我们终会相见。 "};
extern char s_9[]={"☆人这一辈子这么短,趁着还活着抓紧时间好好享受生活。 "};
extern char s_10[]={"☆天动万象,山海化形。荒地生星,璨如烈阳。 "};
extern char s_11[]={"☆\n"};
extern char s_12[]={" 祝你幸福!\n"};
extern char s_13[]={" 张辰一"};
extern char s_14[]={" 2022.11-13"};
extern char * ssum[]={s_1,s_2,s_3,s_4,s_5,s_6,s_7,s_8,s_9,s_10,s_11,s_12,s_13,s_14};
char randk();
void Birthday();
int main(){
Birthday();
int i=0;
long f=0;
char s[10]="color ";
puts("\n\n\n\n\n\n\n\n\n\n ");
for(i=0;i<N;i++){
s[6]=randk();s[7]=randk();
system(s);
printf("\r ★生日快乐!★");
f=0;
while(f<81474400)f=f+1;
}
puts("吴绍谦:\n\n\n");
s[6]='d';
for(i=0;i<14;i++){
puts("\n\a");
s[7]=randk();
system(s);
puts(*(ssum+i));
f=0;
while(f<19999){
f=f+1;
f=f-1;
f=f+1;
}
}
getchar();
}
void Birthday(){
unsigned frequency[]={392,392,440,392,523,494,
392,392,440,392,587,523,
392,392,784,659,523,494,440,
698,698,659,523,587,523};
unsigned delay[]={375,125,500,500,500,1000,
375,125,500,500,500,1000,
375,125,500,500,500,500,1000,
375,125,500,500,500,1000,};
for(int i=0;i<25;i++){
Beep (frequency[i],delay[i]);
}
}
char randk(){
char a=0;
a=(char) abs( rand()%16);
if(a >=10){
a-=10;
a+=97;
}else a+=48;
return a;
}