I'm trying to iterate through a struct, but wanted to be able to do something along the lines of:
string searchy = "jimmy";
string suffix = "firstname";
for (person dude : pnum){
if (dude.&suffix == searchy){
// Do things
}
}
For those familiar with Perl/PHP, I'm trying to accomplish the equivalent of $$variable. Google is not my friend today. :/