Could you, in theory, pass two comma separated values to one element of an array?
Never mind...I could have sworn there is a way to do it through syntax but I guess not...
Well never the less you can make:
1 2 3 4 5 6 7 8 9 10 11 12
|
struct pair
{
int one, two;
};
int main()
{
pair example[3];
example[0].one = 1;
example[0].two = 2;
}
|
Last edited on
I thought it sounded too good to be true...
an array of strings? Why would you want to pass two values to one element?