Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
// File: shape.h
2
// Purpose: Class prototype for our generic shape & a helper function.
3
4
#ifndef SHAPE_H
5
#define SHAPE_H
6
class shape {
7
public:
8
virtual void draw()=0;
9
virtual void getUserParameters(int firstLine)=0;
10
};
11
12
// Helper function, which allows a user to create a shape.
13
// If the user decides, instead, to quit, it returns NULL
14
shape *getUserShape();
15
16
#endif
17
18
19