All pastes #808905 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-08 00:25 UTC
rendered paste body
struct circle
{
     int radius;
     int x;
     int y;
} 

int main()
{
     circle ThisIsACircleVariable;
     ThisIsACircleVariable.radius=3;
     int area= 3.14* ThisIsACircleVariable.radius*ThisIsACircleVariable.radius;
     return 0;
}








This is the function we need to call in our pics.cpp (our main function)

void ShapeDrawer::drawLine(Line l) {
	int xa = l.getStart().getX();
	int ya = l.getStart().getY();
	int xb = l.getEnd().getX();
	int yb = l.getEnd().getY();
	int red = l.getColor().getRed() ....it keeps going etc....

Line is a class.

So how do we implement this? am I making sense?