Im trying to write this program and i think i am close to being complete but im getting 2 errors C2448, C3861. I am using microsoft visual studio 2005 and when i look up the definitions for the code it doesnt help much anyone have an idea of whats going onthanks for any helpCode:#include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int *x; int *y; int *a; int *b; int distance; cout<<"Enter the x and y values for first coordinate: "; cin>>*x, *y; cout<<"Enter the x and y values for the second coordinate: "; cin>>*a, *b; int getcoords(*x, *y, *a, *b, distance ) { distance = sqrt((a-x)^2+(b-y)^2); cout<<"The distance between the two coordnates is "<< distance; } return 0; }



LinkBack URL
About LinkBacks



