当前位置:文档之家› C语言告白恋爱专用(源代码,闪动之心)

C语言告白恋爱专用(源代码,闪动之心)

#include#include
#include
#include
#includevoid gotoxy(int x,int y)
{COORD c;
c.X=x;
c.Y=y;SetConsoleCursorPosition (GetStdHandle(STD_OUTPUT_HANDLE),c);
}
void Deng(int s)
{
int a,b;
a=clock();
while(clock()-a}
void LOVE(char A[],int a,int c)
{ int i=0;
gotoxy(0,0);
while(A[i]!='\0')
{ if(A[i]!=' '&&A[i]!='\n')
SetColor(a-1,0),printf("%c",a);
else
printf("%c",A[i]);
i++;
}
Deng(c);}
int main()
{
char A[365]={" ****** ******\n ********** **********\n ************* *************\n *****************************\n *****************************\n *****************************\n ***************************\n ***********************\n *******************\n ***************\n ***********\n *******\n ***\n *\n\0"}; int c; gotoxy(0,14);
loop:
scanf("%d",&c);
while(!kbhit())
{ LOVE(A,rand()%94+33,c); }
goto loop; }

相关主题
文本预览
相关文档 最新文档