ok i know struct is from c, but struct are so similar to classes...you can declare:
well doesnt that create an object from the struct person...and if struct was from the old C language...isnt that object oriented programming.....? dont mind my stupidity.....but please answer.Code:struct person
{
// can have constructors
int age;
int height;
// can have member functions
};
person me;
me.age = 18;