{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# l09 - CSci 1113 C/C for Scientists and Engineers Section...

This preview shows pages 1–8. Sign up to view the full content.

: CSci 1113 C/C++ for Scientists and Engineers Section 010 - evening class Arrays Prof. Eric Van Wyk and Ted Kaminski Spring 2010 c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 1 / 20

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

View Full Document
Matrix operations : Matrix multiplication I Let’s write a matrix multiplication function I Until we introduce pointers, we’ll be working with partially filled arrays. c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 2 / 20
Matrix operations : Exercise 9.1 What should the function declaration for matrix multiply look like? c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 2 / 20

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

View Full Document
Matrix operations : Examples I RadioCost.cpp I GraphReachability.cpp c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 3 / 20
Grouping data: struct : Syntax struct name { variable declarations } ; c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 4 / 20

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

View Full Document
Grouping data: struct : Date example: declaration struct Date { int year; int month; int day; } ; I Using a class like a struct is a bad idea. I Classes are about operations! c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 5 / 20
Grouping data: struct : Date example: use Date now; now.year = 2010; now.month = 3;

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 22

l09 - CSci 1113 C/C for Scientists and Engineers Section...

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

View Full Document
Ask a homework question - tutors are online