I am new to C++ and wanted to know what’d this declaration mean:
typedef pair<double,double> pairD;
pair<pairD, long> unknown;
what’d unknown be?
And more specifically, what’d these operators do:
unknown.FF.FF;
unknown.FF.SS;
Can you provide an example on what data one could initialize or fill in in such unknown data structure?
Thanks!
unknownis apair<pair<double, double>, long>.Impossible to guess what
FFandSSmean with any certainty though. The obvious interpretation would be something aboutFirstFirstandSecondSecond— but those don’t fit with how they’re being used (and while FirstFirst sort of makes sense, SecondSecond really doesn’t, since unknown.second is along, not a pair).Having ruled that out, about all that’s left is that they just stand for
firstandsecond, sounknown.FF.SSis equivalent tounknown.first.secondandunknown.FF.FFis equivalent tounknown.first.first.As to how to put data into an
unknownlike this, one possibility would be something like: