Lecture2

Lecture2 - Todays announcements: Course policies:

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

View Full Document Right Arrow Icon
Today’s announcements: Course policies: http://cs.illinois.edu/class/cs225 Email assistance (ews, svn, etc.): cs225help@cs.illinois.edu See course website for piazza instructions. Sections meet in Siebel 0224, beginning tonight! HW0 available, due 8/29 before lecture. MP1 available, due 8/30, 11:59p. Linux tutorial: 8/26, 7-9p, Siebel 0224 DYB (Siebel 3405): – Every Tue, 1:30-3:30p (Cinda) – Wed DYB cancelled (for now) Proficiency exam: 8/29, 7-10p, Siebel 2407
Background image of page 1

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

View Full DocumentRight Arrow Icon
Today’s plan: Ideas/concepts: Class definitions Class function implementation Constructors Clients OOP: C++ I E P
Background image of page 2
Our first class… class sphere{ }; #include “sphere.h” int main(){ sphere a; } 1. Upon command > g++ main.cpp does this code compile? 2. Upon command > ./a.out does it run? main.cpp sphere.h What surprises you about this code?
Background image of page 3

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

View Full DocumentRight Arrow Icon
class sphere{ public: sphere(); sphere(double r); void setRadius(double newRad); double getDiameter(); private: double theRadius; }; int main(){
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.

Page1 / 9

Lecture2 - Todays announcements: Course policies:

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