ADT Example
来源:互联网 发布:apache 配置php报错 编辑:程序博客网 时间:2024/06/08 02:59
Example (Integer Data Type)
The integer data type can consist of:data values: −∞,...,−2,−1,0,1,2,...,∞
operations: +,−,∗,%,/,...
The character data type can consist of:
data values: \0,..., ’A’,’B’,...,’a’,’b’,..., ’1’, ’2’, ...
operations: <, >, ≤, ≥, ==, ...
Example Data Types: Person, and 2D Points
We can have data types for composite data too.
Example (Person Data Type)
The Person data type can consist of:
data values: { 15, "Bob", "Buckwheat"}, { 50, "Jack", "Bauer" },
...
operations: set/get firstname, set/get lastname, set/get age,
==, ...
Example (2D Point Data Type)
The 2D Point data type can consist of:
data values: (0,0),(1,0),(3.7,−8.5)···
operations: get distance between 2 points, move point, add
points together, ...
Data Structures: Familiar examples
Example (Data Structure: Array)
Elements: All the same data type (integer, float, Person,
etc,.).
Structure: Elements form a contiguous sequence in which
each element is numbered with an index.
Example (Data Structure: Matrix (2D array))
Elements: All the same data type (integer, float, Person,
etc,.).
Structure: Elements form a grid in which each element has a
row and column position.
- ADT Example
- example
- example
- Example
- example
- Example
- Example
- Example
- Example
- example
- Example
- Example
- Android:Windows64位搭建开发环境-JDK,SDK,Eclipse,ADT,AVD-HelloWorld Example,genymotion
- ADT
- adt
- ADT
- ADT
- ADT
- 关于Eclipse部署web项目到tomcat插件,启动成功但运行报错org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(Lja
- hdu 1314 只图个1314(Java大数)
- 药易通采购过账存储过程ts_c_BillAudit 分析
- NSJSONReadingOptions翻译
- 合并两个文件
- ADT Example
- 正则表达式匹配url的一种思路
- 简介html
- jboss5_x与jdk1_6冲突问题的解决方案
- 消除 activity 启动时白屏、黑屏问题
- 关于canvas的学习心得(三)(计算错误)
- 码流 / 码率 / 比特率 / 帧速率 / 分辨率 / 高清的区别
- 设计师2大必备HTML动画工具
- win7和win8对比特点