Hi everyone, I am new to the programming world. I have a big trouble of doing my homework and I really need your help. My goal is to make a short animated cartoon showing an arrow hitting a target. Moreover, I must create a function that draws an arrow(or some other projectile) with specified tip (or some other reference point) and size (relative to some standard size). What I have writen so far does not work (there are errors): (I really appreciate your help and hope that someone can help me)
#include "ccc_win.h"
#include "time.h"
// pause the screen for x ms
void pause (int x)
{
clock_t goal = x + clock();
while (goal > clock());
}
// draw the Arrow with the header at "head", and the size scaled by "scale"
void drawArrow(Point head, double scale) {