Original Post
Hi all i am just wondering wats wrong with this program. When i compile it it says there is something wrong with my (float distance;) if any one has any ideas or suggestions they would be greatly appreciated. Cheers // #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { cout << "This program is designed to convert Polar Co-ordinates into Cartesian Co-Ordinates. Created by Trent Rhodes" float distance; cout << "plese enter the distance of the polar co-ordinate:"; cin >> distance; float angle; cout << "please enter the angle of the polar co-ordinate:"; cin >> angle; float X; X = distance*(cos*angle) float Y; Y = distance * sin * angle cout << "X value is:" cout << X << endl; cout << "Y value is:"; cout << Y << endl; system("pause"); return 0; }