B
Bill Cunningham
I have decided on how I want to do this. Old data will be stored to a
file. I only want the functions defined as Sma or simple moving average, an
arithmetic mean; to do the calculating work. I want to be able to take as
many doubles as I want and sum them and divide by the number of doubles.
Then the function would return a value that would be saved as a text or
binary file via another function. This is what little bit I have so far.
#include "ta.h"
double Sma (double *num) {
int count=*num;
The header ta.h says this...
#include <stdio.h>
#include <stdlib.h>
double Sma (double *);
Bill
file. I only want the functions defined as Sma or simple moving average, an
arithmetic mean; to do the calculating work. I want to be able to take as
many doubles as I want and sum them and divide by the number of doubles.
Then the function would return a value that would be saved as a text or
binary file via another function. This is what little bit I have so far.
#include "ta.h"
double Sma (double *num) {
int count=*num;
The header ta.h says this...
#include <stdio.h>
#include <stdlib.h>
double Sma (double *);
Bill