void Name::class()
{
Variable sVariable;
sVariable.strName = "text or for other stuct members these were int double etc taken from the UI";
}
How do I access these members from another class? For example, I want to use the struct variables for comparison with other variables in the other class? Since they are already instantiated, then it should be as simple as:
if(class.sVariable == 5)
{
//do something
}
But I'm not sure what to write for the first part of the if statement.


Sign In
Create Account

Back to top










