Hi,
I just want to ask about the use of struct in C++ for you guys. I've been in JavaScript for a while now, and I have literal object that simply looks like this as an example:
var employee = {
name: "John",
id: 4903,
job: "Mechanic"
}
In JavaScript I often use this as data representation only, instead of being able to do something. Does this actually works the same if I use C++ struct?
I saw C++ struct is much more flexible than the above, so if you can also share me many real-world possibilities on using struct (especially for games) it'll be very useful.
Thanks!