Error in function, arg of struct pointer.
I"m having a bit of trouble....and I have no clue what is up with this :/ The error is:
too few.
:confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused:
What does that mean?? I figured it meant too few arguments...but...how is that possible?
Heres my code:
Code:
#include <iostream>
#include <conio.h>
struct _3DStruct
{
int x;
int y;
int z;
};
void input(_3DStruct *pOne)
{
int x;
int y;
int z;
std::cin >> x >> y >> z;
x = pOne->x;
y = pOne->y;
z = pOne->z;
}
int main()
{
std::cout << "Enter in x,y,z coords of point: " << "\n";
input();
getch();
return 0;
}
Any ideas? I'm completely clueless on this one..