#include // #include using namespace std; void CountPos(float* xPos, float* yPos,float xAcc,float yAcc) { float *xPoint, *yPoint; *xPos += xAcc; *yPos += yAcc; // xPoint = xPos; // yPoint = yPos; // cout << "Address of xPoint = " << xPoint << endl; // cout << "Address of yPoint = " << yPoint << endl << endl; cout << "Value of xPos = " << *xPos << endl; cout << "Value of yPos = " << *yPos << endl << endl; } int main() { float xPos, yPos, xAcc, yAcc; xPos = yPos = 10; xAcc = yAcc = 1; cout << "Begin Value of xPos = " << xPos << endl; cout << "Begin Value of yPos = " << yPos << endl << endl; CountPos(&xPos, &yPos, xAcc, yAcc); cout << "End Value of xPos = " << xPos << endl; cout << "End Value of yPos = " << yPos << endl << endl; }