Hello,
I'm looking for some help with this short and simple program which I've had problems with for ages. The code for the last solution was apparently right, just didn't work. Anyway here is the latest one:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
const double dx=0.1;
double x=0.0, y;
for (int i=0; i<=140; i++)
{
y= double sin double x;
x=x+dx;
cout << x << \"t" << y << endl;
}
return 0;
}
I'm getting a couple of errors:
error C2017: illegal escape sequence
error C2062: type 'double' unexpected
Thanks for the help