CSE 123C.001 3-7-08 to 4-7-08

CSE 123C.001 3-7-08 to 4-7-08 - CSE 123C 3/7/08-4/7/08 Let...

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

View Full Document Right Arrow Icon
CSE 123C 3/7/08-4/7/08 Let me first say, I am sorry for taking so long to send these. I have been away for medical  reasons so it has been taking me awhile to get caught up with all my work. Exam version 2 # 14 int x=0; If (-0.5 ≤ x ≤ 0.5) Evaluate from left to right -0.5≤0 true, therefore 1≤0.5 false Engineering problem example: \t = tab, 3 spaces Last slide of code in chapter 3 slides is in case the final temp is not a multiple of 5 Chapter 4: Material for slides is from  http://www.doc.ic.ac.uk/~wjk/C++Intro/RobMillerL4.html
Background image of page 1

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

View Full DocumentRight Arrow Icon
File must be in the same directory as executable two ends are defined to read/write from the screen use <iostream> to read/write from the file use <fstream> ifstream inFile; (declaration, just like int x; i=input, f=file) screen to program screen from program cin cout
Background image of page 2
ifstream is the type of stream and inFile is the given name given name can be changed general form to connect stream to file streamVariableName.open(“FileName”); file to program File from program
Background image of page 3

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

View Full DocumentRight Arrow Icon
.=operator, open=operation, FileName=argument
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 04/08/2008 for the course CSE 123c taught by Professor Elkarboutly during the Spring '08 term at UConn.

Page1 / 7

CSE 123C.001 3-7-08 to 4-7-08 - CSE 123C 3/7/08-4/7/08 Let...

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