Expand|Select|Wrap|Line Numbers
- struct VectorCords
- {
- int x, y, z;
- };
- DoSomething (VectorCords VectorInfo) //Function that accepts VectorCords Struct
- {
- . . .
- }
DoSomething (5,7,12);
and have the object of VectorCords take those 3 ints and create an object of the struct. I know i can overload the function, but that seem like adding a lot of code for having the same values. Any ideas or any technical terms i can research to find the answer?