基本信息
源码名称:C++程序员爱的表白,心形图示例
源码大小:0.21M
文件格式:.zip
开发语言:C/C++
更新时间:2013-01-08
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 1 元 
   源码介绍

表白爱之“心”


# include<stdio.h>
# include<math.h>
# define R 16
void main()
{
	char xin[2*R 1][2*R 1];
	int t,x,y;
	double d;
	for(x=0;x<2*R 1;x  )
		for(y=0;y<2*R 1;y  )
			xin[x][y]=' ';
		for(t=0;t<=360;t =8)
		{
			d=t*3.14159/180;
			x=(int)(R*sin(d/2)*sin(d)) R;
			y=(int)(R*sin(d/2)*cos(d)) R;
			if(t%40==0)
			  xin[x][y]='L';
			else if(t%40==8)
				xin[x][y]='O';
			else if(t%40==16)
				xin[x][y]='V';
            else if(t%40==24)
				xin[x][y]='E';
			else 
				xin[x][y]='*';
		}
		for(x=0;x<2*R 1;x  )
		{
			for(y=0;y<2*R 1;y  )
				printf("%2c",xin[x][y]);
			printf("\n");
		}
		
}