Lecture18 - Engineering 101 Lecture 18 Scope & Lifetime...

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

View Full Document Right Arrow Icon
Engineering 101 Engineering 101 Lecture 18 Lecture 18 Prof. Michael Falk University of Michigan, College of Engineering
Background image of page 1

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

View Full DocumentRight Arrow Icon
Announcements Announcements Project 4 Due Sunday 10/22 at 9pm. Exam 2 on Wednesday 10/25, 7-9pm. Early Administration Exam 2 Monday 10/23, 3-5pm in Dow 1017. Contact me by today if you will take the exam early. Ramsey Hilton Alfred Chung Zac Evans-Golden Alexandra Holbel Kyle Polack Jeff Weiner
Background image of page 2
Announcements Announcements Exam 2 Wednesday 10/25 at 7pm. Room Assignment by First Letter of Last Name A-G Dow 1013 H-O GGBrown 1504 P-U CSE 1670 V-Z CSE 1690
Background image of page 3

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

View Full DocumentRight Arrow Icon
Announcements Announcements Midterm student evaluation site open until October 23 Please let me know what you think is good or bad about the course. To complete an evaluation: 1. Go to http://www. engin . umich . edu/midtermevals 2. Click on the link "Submit Midterm Evaluations” 3. Login (authenticate) 4. At this point, a list of your CoE courses will appear and you will be able to complete a midterm course evaluation for any/all of them.
Background image of page 4
Project 4 Pep Talk Project 4 Pep Talk It is my job to challenge you, because you are smart people and you will learn more if you are challenged. You may feel that putting the programming in the context of a challenging conceptual problem confuses the point, but it is precisely the point . I want you to be an engineer, and that means developing a way of working that allows you to break down complex problems into their component pieces . We are here to help you. Make sure to alternate between working and talking the problem through with a GSI and/or your peers. Don’t be discouraged.
Background image of page 5

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

View Full DocumentRight Arrow Icon
Modifications to the Modifications to the Usage of Data Usage of Data Usually when an identifier is declared the computer sets aside memory in which to store the associated data. The memory is then available for use. It can be read and altered during the course of the program. However, sometimes we may want to treat certain data specially.
Background image of page 6
Constants Constants If you want a variable to never change in the context of the code you can define it to be a const const double speedoflight = 3e8; Note that const does not replace the type, but rather it modifies the data type.
Background image of page 7

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

View Full DocumentRight Arrow Icon
Aliases (References) Aliases (References) We can declare a new variable that is a stand-in for an other variable. double v = 5.0; double & w = v; cout << w << endl; The above code will print 5.0 because v and w are the same variable. The variable referenced can never be changed.
Background image of page 8
Aliases (References) Aliases (References) We have already used such variables implicitly when we do pass-by-reference. We can make a reference that is a const.
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/02/2008 for the course ENGR 101 taught by Professor Ringenberg during the Fall '07 term at University of Michigan.

Page1 / 63

Lecture18 - Engineering 101 Lecture 18 Scope &amp; Lifetime...

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

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