我只是写了一个框架,将自己想表现的,然后跟着大佬的思路走了一遍,若想学习,请移步下方链接:
http://t.csdn.cn/XlLcg
http://t.csdn.cn/OOauF
我的思路:
输入母亲的生日,判断正确。
输出:
然后回答yes
再次回答yes,就会输出一个动态的爱心。
5月14日
源码
test1实现动态爱心
test2实现我爱你和母亲节快乐。
其他函数都是取自两位大佬的。
#include<stdio.h>
#include<string.h>
#include<assert.h>
#include<math.h>
#include<stdlib.h>
#include<search.h>
#include<graphics.h>//引用图形库头文件
#include <conio.h>
#include<time.h>
#define R 100
struct love
{
/*double x;
double y;*/
int x;
int y;
int height;
double angle;
double r;
int cur;
};
struct love move_love[20*20];
void init()
{
initgraph(800, 800);
memset(move_love, 0, sizeof(struct love) * 400);
srand(time(NULL));
}
void creat_angles(int angles[], int count)
{
int M = 314 * 2 * 2;for (int i = 0; i < count; i++)
{
int temp = 0;
int j = 0;
while (1)
{
t