bg287

csc201 20101027Notes

Posted in csc201 by bnmng on 2010 10/27

Homework Read 13.1 to 13.3

Today:
Program 3
Chapter 12
Abstract Data Types
Classes
Specifications
Implementations

Need constant or constant expression to indicate size of array.

const int SECTOR_SIZE = 512;
int Buffer [2*SECTOR_SIZE];

In c++ There is no range check on arrays. If you exceed the array’s limits, it will screw things up but you won’t necessarily get an erro.

Arrays are passed by reference. Do not use the ampersand. The ampersand is implied.

Row wise processing is better than column-wise processing due to caching.

Passing 2 dim arrays: Must have all but first array dimention in squares.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: