L
Lordaeron
class dataublic baseData
{
public:
int aaa;
char bbb[3];
int ccc;
}
now i want a function something like
get(1) return values of aaa;
get(2) return values of bbb;
set(1,30) set the values of aaa to 30;
and because the data class may have different content,
and i think, i don't want to write N times of get and set, the
data may have data1, data2 .... etc, so , is there anyway that
can easier to implement.
i think i am doing something like Resultset of Java
{
public:
int aaa;
char bbb[3];
int ccc;
}
now i want a function something like
get(1) return values of aaa;
get(2) return values of bbb;
set(1,30) set the values of aaa to 30;
and because the data class may have different content,
and i think, i don't want to write N times of get and set, the
data may have data1, data2 .... etc, so , is there anyway that
can easier to implement.
i think i am doing something like Resultset of Java