CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - create object
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - create object - List
[
Chess Poker games
]
GeometricVersion3
DL : 1
课程设计 几何图形(满分50 分) 版本1:满分10 分 设计抽象类GeometricObject 及其子类Triangle 和Circle。 GeometricObject 类设计要求如下: ■ 一个名为color 的Color 类型的私有数据域,表示对象的颜色。 ■ 一个名为filled 的Boolean 类型的私有数据域,表示对象是否填充颜色。 ■ 一个名为dateCreated 的Date 类型的私有数据域,表示对象的创建日期。 ■ 一个无参构造方法。 ■ 一个能创建特定color 和filled 的有参构造方法。 ■ 相关数据域的访问器和修改器。 ■ 两个个名为draw 和erase 的抽象方法。 ■ 一个名为getArea 的抽象方法。 ■ 一个名为getPerimeter 的抽象方法。 ■ 重写toString 方法。 Triangle 类设计要求如下: ■ 三个名为side1、side2 和 side3 的double 类型的私有数据域表示三角形的三条边。它 们的默认值是1.0。要求三个数据域保留2 位小数。 ■ 一个无参的构造方法创建默认三角形。 ■ 一个能创建带指定side1、side2 和 side3 的有参构造方法。 ■ 所有三个数据域的访问器和修改器方法。 ■ 父类抽象方法的实现。 ■ 重写toString 方法。 Circle 类-Curriculum Design Geometry (out of 50) Version 1: 10 points Design an abstract class and its subclasses GeometricObject Triangle and Circle. GeometricObject class design requirements are as follows: ■ a named color of the Color type private data field that indicates the object s color. ■ a Boolean type called filled private data field that indicates whether the object fill color. ■ Date type named dateCreated private data field, which means that the object was created. ■ a no-argument constructor. ■ one can create a specific color and filled in with arg constructor. ■ Related data field accessor and modifier. ■ two months called draw and erase the abstract methods. ■ an abstract method named getArea. ■ an abstract method named getPerimeter. ■ overridden toString method. Triangle class design requirements are as follows: ■ three named side1, side2 and a double side3 private data field indicates the type of triangle with three sides. It Our default value is 1.0. Requires
Date
: 2026-01-10
Size
: 21kb
User
:
陈浩
[
Chess Poker games
]
斗地主ai
DL : 1
//使用方法: //首先创建m_pRobot = new CRobot()对象 //叫分: //1.初始化手牌到m_pRobot->m_szHandCards数组,手牌按牌面从小到大排序,例:200,300,101,201,102,403,205,311,210,310....,注意数组大小,不要有空值或者0值 //2.调用解析函数m_pRobot->Resolution(); //3.获取叫分m_pRobot->getCallF(),返回0不叫,1一倍 2两倍 3三倍 //出牌: //1.初始化手牌到m_pRobot->m_szHandCards数组 //2.调用解析函数m_pRobot->Resolution(); //3.设置牌池中的出牌数据: //a.m_pRobot->m_nLastPutCardIndex最后那个出牌人的座位号[0,1,2] //b.m_pRobot->m_nLastPutCardNum牌池内牌型有多少张 //c.m_pRobot->m_szLastPutCard牌池内牌型,按牌面从小到大排序(// Method of use: // First create m_pRobot = new CRobot () object / / points: Initialize the hand to the m_pRobot-> m_szHandCards array. Hands are sorted from small to large, for example: 200, 300, 101, 201, 102, 403, 205, 311, 210, 310.... Pay attention to the size of the array. Do not have empty or zero values. //2. Call the analytic function m_pRobot - > Resolution (); //3. Get m_pRobot - > getCallF (), return 0 no call, double 2 times 3 times / / playing cards: //1. Initialize the hand to the m_pRobot-> m_szHandCards array //2. Call the analytic function m_pRobot - > Resolution (); //3. Set the license data in the pool: //a.m_pRobot-> m_nLastPutCardIndex Last Player's Seat Number [0,1,2] //b.m_pRobot-> m_nLastPutCardNum pool number of cards //c.m_pRobot-> m_szLastPutCard pool type, sorted from small to large)
Date
: 2026-01-10
Size
: 12kb
User
:
Los瘦身
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.