Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 117 Spring 2002 What's Next. Files How to get data from a file instead of the keyboard How to save data to a file You know most of this from using.

Similar presentations


Presentation on theme: "CS 117 Spring 2002 What's Next. Files How to get data from a file instead of the keyboard How to save data to a file You know most of this from using."— Presentation transcript:

1 CS 117 Spring 2002 What's Next

2 Files How to get data from a file instead of the keyboard How to save data to a file You know most of this from using cin and cout

3 Arrays Often you have a number of variables for different instances of the same thing –the number of atoms of each element in an amino acid –test scores for each student in a class arrays let you declare variables that have multiple components –now you can use loops to process the data

4 Classes Classes are what makes C++ object oriented –you can create your own types –encapsulate - hide details from the user –simplifies development by separating a program into nearly independent parts

5 Examples Classes you've already seen –string –istream (cin) and ostream (cout) classes you could have used –point class that holds an x and a y value (or an r and a theta value) –amino class to hold amino acid name and number of atoms of of each element

6 Road Map Files –Hanly Chapter 9 –Friedman-Koffman Chapter 8 Arrays –Hanly Chapter 7 –Friedman-Koffman Chapter9.1-9.5 Classes –Hanly Chapter 6 –Friedman-Koffman Chapter 9.7-0.8


Download ppt "CS 117 Spring 2002 What's Next. Files How to get data from a file instead of the keyboard How to save data to a file You know most of this from using."

Similar presentations


Ads by Google