Railways project code in cpp