Continental and United Airlines have agreed to merge, creating the world's largest carrier.