if you need it to look exactly like what you wrote and you actually need to store the values (as opposed to just printing them), a tiny class or struct could wrap a string with a couple of methods that allowed syntax like
gps.assign(47.123,100.567);
or
gps = othergps;
or
gpstype gps(47.123,100.567);
or various other constructs.
and a vector of those could hold a bunch until you were ready to print them, etc?
if you wanted to get really fancy a small object like
struct gpstype
{
float lat;
float lon;
string latlon_txt;
//methods to provide what you need, probably 2-3 simple methods will do here?
};