(1) 设计和编写代表矩阵的Matrix类。该类包括矩阵行列数变量int rows和int cols,矩阵数据数组double data[][],构造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),获取某元素值的方法getData(int row,int col),设置某元素值的方法setData(int row,int col,double value),计算两个矩阵的乘积的方法multiply(Matrix m)以及toString()等内容。
上传时间: 2016-08-19
上传用户:qiao8960
(1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。 (2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及构造方法Circle()、Circle(int xx,int yy,int r)、Circle(Point c,int r),返回周长和面积的int perimeter()、double area()方法,返回两个圆是否为同一个圆(返回0)、同心圆(返回1)、相交的圆(返回2)、分离的圆(返回3)、包含的圆(返回4)等关系的int relation(Circle c)等方法。PI值可以用Math.PI常量。 (3) 实现测试上述两个类的ClassTest类。该类在main方法中分别创建若干个Point对象和Circle对象,并调用相关方法,输出方法的返回值,验证其正确性。 (4) 将Point类、Circle类和主类的包名分别调整为p1、p2、p3,并重新运行,验证是否运行正确。
标签: Point
上传时间: 2014-11-25
上传用户:cylnpy
ITU的关于图像主观质量评价的标准文档,具体描述了double-stimulus continuous quality-scale (DSCQS)的测试条件和方法
上传时间: 2014-01-18
上传用户:dancnc
DevExpress.ExpressSideBar.v5.37.for.Delphi.BCB.Full.Source delphi和 bcb源码,能轻松实现outlook风格的侧边栏,效果很好,推荐! ExpressSideBar is a VCL implementation of the MS Outlook bar. Designed to be easy to use and built with a significant feature set. Just drop it on a form, double click the control and in a few moments, you can customize the ExpressSideBar for your needs.
标签: ExpressSideBar DevExpress Delphi Source
上传时间: 2013-12-26
上传用户:han_zh
s3c2410 ads下的测试程序移植到 iar ewarm v5.2;包括 Please select function : 0 : Please input 1-14 to select test 1 : Real time clock display 2 : 4 key array test 3 : Buzzer test 4 : ADC test 5 : IIC EEPROM test 6 : Touchpanel test 7 : 3.5# TFT LCD 240*320 test 8 : UDA1341 play audio test 9 : UDA1341 record audio test 10 : IRDA test 11 : SD Card write and read test 12 : COM port ( UART2 ) test
标签: Please select function s3c2410
上传时间: 2016-10-01
上传用户:225588
This application includes a demo server and client program. You could write your own server launcher and client application by using the SimpleScreenCaptureServer class and the SimpleRemoteScreenCaptureClient class. Usage: 1. Type the following command to launch the server program. java -jar SimpleCaptureScreenServerDemo.jar portnumber 2. Type the following command to launch the client program. It s a swing-based UI. java -jar RemoteScreenCaptureClientUI.jar 3. Select Run/Connect menu. Input your server address and port number. You could just double-click on the RemoteScreenCaptureClientUI.jar to launch the client program if you are using Windows. This program is written just for fun. :lol: :lol: :lol:
标签: server application includes launcher
上传时间: 2016-10-06
上传用户:kr770906
CppReference 对于c/c++的详尽说明 C/C++ Reference General C/C++ Pre-processor commands Operator Precedence Escape Sequences ASCII Chart Data Types Keywords Standard C Library Standard C I/O Standard C String & Character Standard C Math Standard C Time & Date Standard C Memory Other standard C functions All C Functions C++ C++ I/O C++ Strings C++ String Streams Miscellaneous C++ C++ Standard Template Library C++ Algorithms C++ Vectors C++ Double-Ended Queues C++ Lists C++ Priority Queues C++ Queues C++ Stacks C++ Sets C++ Multisets C++ Maps C++ Multimaps C++ Bitsets Iterators All C++ Functions
标签: Pre-processor CppReference Reference Operator
上传时间: 2016-10-26
上传用户:aeiouetla
The ADC0803 family is a series of three CMOS 8-bit successive approximation A/D converters using a resistive ladder and capacitive array together with an auto-zero comparator. These converters are designed to operate with microprocessor-controlled buses using a minimum of external circuitry. The 3-State output data lines can be connected directly to the data bus.
标签: approximation converters successive family
上传时间: 2016-11-20
上传用户:libenshu01
Methods void close() int read() reads and returns a chracter. int read(char[] characterArray) populates an array of characters with data. boolean ready() - returns “true” if there is data available. ……
标签: read characterArray int chracter
上传时间: 2013-12-18
上传用户:小儒尼尼奥
dwr.xml说明文档。配置文件init部分声明那些用于建立远程bean和在方法调用中转换bean的类.这部分是可选择性配置的,多数情况下可以不必使用它,如果你想定义一个新的creator或者converter那么就必须在部分中声明,but do double check on the ones that are currently available first.
上传时间: 2014-02-14
上传用户:偷心的海盗