Search found 2 matches
- October 14th, 2014, 2:47 am
- Forum: Everything
- Topic: passing variables to structs in other classes(?)
- Replies: 6
- Views: 2575
Re: passing variables to structs in other classes(?)
Well you can initialize a structure with values through a constructor, if that's what you are talking about. struct MyNewStruct { // Types/values you want to store someType thing; someType anotherThing; someOtherType someOtherThing; // non default constructor MyNewStruct(someType thing, someType ano...
- October 14th, 2014, 2:38 am
- Forum: Everything
- Topic: function that returns two values?
- Replies: 6
- Views: 2642
Re: function that returns two values?
Another option, if your compiler has support for C++11, you can set and return a Tuple. That's a multi value object.