没有合适的资源?快使用搜索试试~ 我知道了~
加州大学上计算机科的C++教材 7/25
需积分: 0 1 下载量 38 浏览量
2010-02-22
06:13:03
上传
评论
收藏 2.96MB PPT 举报
温馨提示
试读
64页
本人在加州大学上计算机科的C++教材,不是很深,但是如果有志来美念计算机系的话可以先用这个试试水。 C++ courses used by university of California, good for the people who want to purchase degree in computer science and learn some terminology in English.
资源详情
资源评论
资源推荐
2008 Pearson Education, Inc. All rights reserved.
3
OBJECTIVES
In this chapter you’ ll learn:
To use the array data structure to represent a set of
related data items.
To use arrays to store, sort and search lists and tables
of values.
To declare arrays, initialize arrays and refer to the
individual elements of arrays.
To pass arrays to functions.
Basic searching and sorting techniques.
To declare and manipulate multidimensional arrays.
To use C++ Standard Library class template vector.
2008 Pearson Education, Inc. All rights reserved.
4
7.1 Introduction
7.2 Arrays
7.3 Declaring Arrays
7.4 Examples Using Arrays
7.5 Passing Arrays to Functions
7.6 Case Study: Class GradeBook Using an Array to Store Grades
7.7 Searching Arrays with Linear Search
7.8 Sorting Arrays with Insertion Sort
7.9 Multidimensional Arrays
7.10 Case Study: Class GradeBook Using a Two-Dimensional Array
7.11 Introduction to C++ Standard Library Class Template vector
7.12 (Optional) Software Engineering Case Study: Collaboration
Among Objects in the ATM System
7.13 Wrap-Up
2008 Pearson Education, Inc. All rights reserved.
5
7.1 Introduction
•
Arrays
–
Data structures containing related data items of same type
–
Always remain the same size once created
•
Are “static” entities
–
Character arrays can also represent strings
–
C-style pointer-based arrays vs. vectors (object-based)
•
Vectors are safer and more versatile
剩余63页未读,继续阅读
zhuxiangan
- 粉丝: 1
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0