{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lec1 - Lecture 1 Input Output Functions PIC 10B Todd...

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

View Full Document Right Arrow Icon
1 Lecture 1: Input / Output & Functions PIC 10B Todd Wittman Syllabus Highlights square6 Tuesdays you meet your TA in discussion classroom. square6 Thursdays meet your TA in the PIC Lab. square6 Microsoft software will be available for download after the 2nd week. You can work at home, but you are responsible for correctly submitting the HW. square6 Homework 40%, 2 Midterms 30%, Final 30% square6 Every HW has a programming and written part. ring2 Program due Thursday 6:00pm, submitted electronically. ring2 Written due Friday 11:00am, turned in at start of lecture. square6 No late HW will ever be accepted. Period. square6 Midterms are in class Mon 1/28 and Mon 2/25. square6 Final is Sun 3/16, 3:00-6:00pm. square6 This is a 5-credit course. So we expect a lot of you!
Background image of page 1

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

View Full Document Right Arrow Icon
2 Theme for PIC 10B square6 PIC 10A was about how to write C++. square6 PIC 10B is about algorithms and data structures. square6 An algorithm is a procedure or method for performing a certain task. ring2 e.g. Searching a database, Adding a record to the database square6 A data structure is a container or database to store data. ring2 e.g. Vectors, Arrays square6 We will learn several data structures, because there is no "perfect" data structure. ring2 Linked Lists, Stacks, Queues, Binary Trees, Heaps, Hash Tables square6 The overall question for this course is: How do we handle a large amount of data? Outline for PIC 10B square6 Week 1 : PIC 10A Review & Big O Notation square6 Week 2-3 : Classes & Templates square6 Week 4 : Recursion & Searching square6 Week 5 : Linked Lists square6 Week 6 : Stacks & Queues square6 Week 7 : Binary Trees square6 Week 8 : Sorting square6 Week 9-10 : Heaps & Hash Tables square6 Today : Review Input / Output & Functions.
Background image of page 2
3 Ch. 1: The Basic C++ Program #include <iostream> using namespace std; int main( ) { cout << “May the force be with you!\n”; return 0; } square6 Inspiring, but this program is still missing something... Include libraries. Invoke standard namespace. Main routine: first place compiler looks. Return 0 if everything is A-OK. Comments /************************************* ** force.cpp ** Prints Obi-Wan's message.
Background image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}