I'm trying to implement a basic sinewave signal using arrays, but I'm having difficulty (I'm a complete beginner!) This is what I have so far: using namespace std; double signal(double sinewave, double x); int main() { double x, sinewave, output; cout<<endl<<"Please enter a value, x"<<endl<<endl; cin>>x; output = signal(sinewave,x); cout<<endl<<"Sin(x) = "<<output<<endl<<endl; return 0; } double signal(double sinewave, double x) { sinewave = sin(x); return sinewave; } I want to swap a single value x, for an array of 100 points. Can anyone help me with this? Later, I'll need to change the frequency of the signal, but this doesn't matter now? Also, I'll want to plot the signal, but I think this is advanced. If anyone can help, I would really appreciated it! Phil Newman