Code: Select all
int TEMP = 2;
int add(int x, int y, int &d_result = TEMP){
d_result = (x+y)*2;
return d_result/2;
}
Code: Select all
int TEMP = 2;
int add(int x, int y, int &d_result = TEMP){
d_result = (x+y)*2;
return d_result/2;
}
Code: Select all
int xCenter = 50;
int yCenter = 32;
int radius = 20;
float angle = Pi/6 * hour;
drawLine(xCenter, yCenter, xCenter + radius * sin(angle), yCenter + radius * cos(angle));