#include <math.h> #include <chplot.h> int main() { int numpoints = 36; array double x[numpoints], y[numpoints]; class CPlot plot; linspace(x, 0, 360); y = sin(x*M_PI/180); plot.arrow(185, 0.02, 0, 225, 0.1, 0); plot.text("test text", PLOT_TEXT_LEFT, 225, 0.1, 0); plot.data2D(x, y); plot.plotting(); }