struct StationRating { Station *st; uint rating; }; std::vector ratings; ratings.clear(); int i = all_stations->Length(); StationRating ratings; ratings.rating = st->goods[type].rating; ratings.st = st;