K
Konrad Mühler
Hi,
I've a struct:
struct POINT {
int x,y;
};
And I want to commit a variable of type POINT in a function
myFunction(POINT myVar) { ... }
If I call the function, I want to write both values for x and y directly
in the function call like :
myFunction(POINT(1,2));
This doesn't work and I want to know, how I can do this. Or do I have to
define the struct as an independent class?
Thanks
Konrad
I've a struct:
struct POINT {
int x,y;
};
And I want to commit a variable of type POINT in a function
myFunction(POINT myVar) { ... }
If I call the function, I want to write both values for x and y directly
in the function call like :
myFunction(POINT(1,2));
This doesn't work and I want to know, how I can do this. Or do I have to
define the struct as an independent class?
Thanks
Konrad