double interpolate(double a, double b, double t)
{
return a + (b - a) * t;
}typedef struct {
double time;
double value;
} Sample;const double weights[3] = {
0.25, 0.5, 0.25
};double sum(const double *values, unsigned int count)
{
double total = 0.0;
for (unsigned int i = 0; i < count; ++i)
total += values[i];
return total;
}Hello, World! #include <stdio.h>
int main(void)
{
printf("Hello, World!\n");
return 0;
}Principles are not negotiable.
Good intentions do not guarantee victory.
Power determines who makes the rules.
Conviction is not a matter of convenience.
Being right does not mean you will win.
Instagram