博客
关于我
送你一颗心Easyx
阅读量:326 次
发布时间:2019-03-04

本文共 744 字,大约阅读时间需要 2 分钟。

在这里插入图片描述

#include 
#include
#include
#include
#include
#define a 60#define PI 3.1415926double th=PI/180;void StartPic(void){ //int gr=DETECTgm; //initgraph(&gr,&gm,"e://turboc2"); initgraph(800,600); cleardevice();}void ClosePic(void){ getch();}void DrawXin(int x0,int y0,int k){ double i,x,y,tx,ty; for(i=-180.0;i<180.0;i+=0.01) { x = a*(2*cos(i*th)-cos(2*i*th)); y = a*(2*sin(i*th)-sin(2*i*th)); tx = x; ty = y; x = tx*cos(k*th)-ty*sin(k*th)+x0; y = y0-(ty*cos(k*th)+tx*sin(k*th)); putpixel(x,y,RED); setfillstyle(1,RED); floodfill(500,500,RED); }}void main(void){ StartPic(); DrawXin(320,240,90); setfillcolor(RGB(255,0,0)); floodfill(350,250,RGB(255,255,0)); ClosePic();}

转载地址:http://srsh.baihongyu.com/

你可能感兴趣的文章
MySQL 证明为什么用limit时,offset很大会影响性能
查看>>
Mysql 语句操作索引SQL语句
查看>>
MySQL 误操作后数据恢复(update,delete忘加where条件)
查看>>
MySQL 调优/优化的 101 个建议!
查看>>
mysql 转义字符用法_MySql 转义字符的使用说明
查看>>
mysql 输入密码秒退
查看>>
mysql 递归查找父节点_MySQL递归查询树状表的子节点、父节点具体实现
查看>>
mysql 里对root及普通用户赋权及更改密码的一些命令
查看>>
Mysql 重置自增列的开始序号
查看>>
MySQL 高可用性之keepalived+mysql双主
查看>>
mysql-connector-java各种版本下载地址
查看>>
mysql-group_concat
查看>>
MySQL-【4】基本操作
查看>>
Mysql-丢失更新
查看>>
Mysql-事务阻塞
查看>>
Mysql-存储引擎
查看>>
mysql-开启慢查询&所有操作记录日志
查看>>
MySQL-数据目录
查看>>
MySQL-数据页的结构
查看>>
MySQL-架构篇
查看>>