Location:
Search - Rectangle ja
Search list
Description: 屏保应用程序,使用JAVA开发的一个简单的屏幕保护程序,能自动绘制矩形-Screen Saving application procedures, the use of the JAVA development of a simple screen saver to automatically drawing rectangle
Platform: |
Size: 26624 |
Author: jk |
Hits:
Description: Java 写的画图板,通过这个小程序,大家可以了解到:建立输入输出流、按钮数组,存放以下名称的功能按钮、创建基本操作按钮,包括"新建"、"打开"、"保存"等、定义铅笔画,也就是用鼠标拖动着随意绘图、绘制以指定颜色填充的实心矩形、绘制以指定颜色填充的实心椭圆、绘制以指定颜色填充的实心圆角矩形、橡皮擦,可用来擦去已经绘制好的图案、选择颜色按钮,可用来选择需要的颜色、选择线条粗细的按钮,输入需要的数值可以实现绘图线条粗细的变化……
-Java to write the drawing board, through this small program, we can understand: the establishment of input and output streams, the button array, placed the name of the function of the following button to create the basic operation buttons, including the " New" , " open" , " save" , etc. definition of pencil drawing, that is, a random drawing with the mouse to drag and draw a solid color fill the specified rectangle, drawn with the specified solid color fill ellipse, Draw the specified rounded rectangle of solid color fill, eraser, have been used to wipe Drawing a good logo, select the color button can be used to select the color, select the line thickness of the button, enter the required values can change the thickness of drawing lines ... ...
Platform: |
Size: 52224 |
Author: 王辉 |
Hits:
Description: 一个计算周长和面积的小程序,使用java语言既简单又实用-Calculate perimeter and area of a small program, using java language is simple and practical
Platform: |
Size: 1024 |
Author: maxinkuan |
Hits:
Description: 在exp6_2.cpp已有圆Circle和长方形Rectangle类的基础上,再定义一个具有类似功能的Triangle(三角形)类(面积公式为p(p-a)(p-b)(p-c)的平方根,其中p=(a+b+c)/2,三角形三边a、b、c)。
● 再设计一个普通求和函数sum,求这三种图形的面积之和。
● 在主函数中设计代码,用虚函数分别计算这三种图形(圆半径12.7,长方形25.2×15.0,三角形边长51.4×35.5×26.8)的面积,再调用求和函数求这三种图形的面积之和(正确结果1330.2964供调试时验证),并打印显示出来(结果显示4位小数,参考课本P28)。
-i fkwj fos hkj sj lwjl wlfkjljoiu l qief lqkajlfkaj lrjqa ja flkjalkjfq oh oaj
Platform: |
Size: 19456 |
Author: zzy |
Hits: