#include <iostream>
#include <cmath>
#include "ccc_x11.h"

using namespace std;

int ccc_win_main()
{
	double step;
	double theta;
	Point last;

	theta = 0.0;
	cout << "Step size? ";
	cin >> step;
	while(theta < 30 * 3.141592654) {
		double x, y;

		x = 0.1 * theta * cos(theta);
		y = 0.1 * theta * sin(theta);
		cwin << Line(last, Point(x, y));
		last = Point(x, y);
		theta += step;
	}
	return 0;
}
