码迷,mamicode.com
首页 >  
搜索关键字:circle    ( 1397个结果
(原创 by 徐剑生)《Java Swing之利用简单的多线程实现动态时钟》
注:本文仅供学习和交流以上是截图,下面上代码第一个类是Circlepackage org.xt.util;import java.awt.Point;public class Circle { private Point centre; private int radius; pu...
分类:编程语言   时间:2014-09-09 11:26:58    阅读次数:246
C++中构造函数的写法
class Circle{public: Circle(float r);private: float radius;};Circle::Circle(float r) { radius = r }通常都是这么写的。还有一种写法,类名::类名(形参表):内嵌对象1(形参表),内嵌对象2(形参表).....
分类:编程语言   时间:2014-09-05 12:50:21    阅读次数:266
通过此方法插入不同数据库数据用于测试
INSERT INTO QCircle.qc_news_center_timing (`name`,info,creat_time,whether_timing,timing_publish_time,publisher,isdelete,news_type,u_id,circle_id,wheth...
分类:数据库   时间:2014-09-04 18:24:09    阅读次数:325
(八)学习CSS之line-style-type属性
参考:http://www.w3school.com.cn/cssref/pr_list-style-type.asp设置不同的列表样式:ul.circle {list-style-type:circle;}ul.square {list-style-type:square;}ol.upper-ro...
分类:Web程序   时间:2014-09-03 09:32:56    阅读次数:674
中点Bresenham算法光栅化画圆(八分法)
代码如下,原理对比上篇画圆方法 void Bresenham_Circle(CDC *pDC, int ox, int oy, int r) { float d = 1.25 - r; int x = 0, y = r, fx = r/1.4; while (x != fx) { if (d < 0) d += 2 * x + 3; else { d += 2 *...
分类:其他好文   时间:2014-09-02 21:25:31    阅读次数:454
【python】入门学习(四)
函数:定义函数#area.pyfrom math import pidef area(radius): """Return the area of a circle with the given radius.""" return pi * radius ** 2>>> ========...
分类:编程语言   时间:2014-09-02 15:43:14    阅读次数:220
Lesson 75-76 Shopping on the web
1 acquaintance熟人 eg. I have a large circle of friends and acquaintances engaged in photography.我在摄影界交游甚广。 认识,了解n eg. They had little or no acquaintanc...
分类:Web程序   时间:2014-08-26 13:21:46    阅读次数:138
Raphaeljs入门到精通(一)
//创建一个画布 var paper = new Raphael("paper", 500, 500); //画圆 paper.circle(50, 50, 50); //画圆角方形 paper.rect(90, 90, 50, 50, 10); 这样一个简单的案例就完成了。 简要说明: new R...
分类:Web程序   时间:2014-08-25 17:06:44    阅读次数:211
Raphaeljs入门到精通(二)
这节我们将介绍Raphaeljs中元素的属性和事件,案例还是以上一篇的代码展开 //创建一个画布 var paper = new Raphael("paper", 500, 500); //画圆 var circle = paper.circle(50, 50, 40);...
分类:Web程序   时间:2014-08-25 17:02:54    阅读次数:232
求两圆相交的面积
//求两圆相交的面积#include#include#include#include#include#include#define esp 1e-8using namespace std;struct Circle{ double x,y; double r;};double calAr...
分类:其他好文   时间:2014-08-23 18:55:31    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!