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

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

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!
Image of page 1

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

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.
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.
Image of page 3

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

Image of page 4
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '08
  • sgd
  • Void type, Obi-Wan Kenobi, Star Wars Episode IV: A New Hope, Star Wars

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern