Lec13 - Lecture 13 Arrays Two Part II dimensional arrays...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture 13 Arrays part II 1 Lecture 13 Arrays Part II Two dimensional arrays Reading data from a file into an array Calculations with arrays Calling functions with arrays as arguments
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lecture 13 Arrays part II 2 Notation A one dimensional array = 22 21 20 12 11 10 02 01 00 a a a a a a a a a a [ ] 3 2 1 0 a a a a a = Starting with zero index is a C++ “unusual” feature. Got to get used to it! A two dimensional array location zero (or index zero) row number (0) column number (1)
Background image of page 2
Lecture 13 Arrays part II 3 Two dimensional array example Declaring a 3x3 two dimensional Indexing through the Indexing through the columns. Assigning the array the values 1-9 and printing the values to the screen. Executing the program. 2darrayexample.cpp can be found on the Examples page.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lecture 13 Arrays part II 4 Example: Ozone decomposition Experimental data Rate of ozone disappearance (moles per minute per m 3 of gas) at various temperatures
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/26/2008 for the course ENGR 1 taught by Professor X during the Spring '07 term at Lehigh University .

Page1 / 12

Lec13 - Lecture 13 Arrays Two Part II dimensional arrays...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online