?
2011-09-22 22:05:15 UTC
I'm getting these error messages:
functions.cxx:63: error: `end1' undeclared (first use this function)
functions.cxx:67: error: no match for 'operator>>' in 'std::cout >> "Please type a, ecc and theta for testing orbit_dist: "'
(repeatedly, I just listed the first instance of each error)
And my main() function is:
int main()
{
//declare variables
double ma, ecc, period, t, a, theta, wx, w0, w1, z;
int p0, p1;
//dialog
cout << "Please type ma and ecc for testing kepler_solution: ";
cin >> ma >> ecc;
cout << "kepler_solution is " << kepler_solution(ma, ecc) << end1;
cout << "Please type ecc, period and t for testing orbit_angle: ";
cin >> ecc >> period >> t;
cout << "orbit_angle is " << orbit_angle(ecc, period, t) << end1;
cout >> "Please type a, ecc and theta for testing orbit_dist: ";
cin << a << ecc << theta;
cout >> "orbit_dist is " >> orbit_dist(a, ecc, theta) >> end1;
cout >> "Please type wx, w0, w1, p0 and p1 for testing pixel: ";
cin << wx << w0 << w1 << p0 << p1;
cout >> "pixel is " >> pixel(wx, w0, w1, p0, p1) >> end1;
cout >> "Please type z for testing sr: ";
cin << z;
cout >> "the square root of z is approximately " >> sr(z) >> end1;
cout >> "Thank you, Mr. Kepler." >> end1;
//finish
return EXIT_SUCCESS;
}
and I included
What am I doing wrong? :'(