C# to C++
How can I convert this code from C# to C++? using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgramozásiTételek_Kiválogatás { class EgyszerreNagyMennyiségbenMegvettTeák { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<string> teak = new List<string>(); for (int i = 0; i < n; i++) { string tea = Console.ReadLine(); int menny = int.Parse(Console.ReadLine()); if (menny > 500) teak.Add(tea); } if (teak.Count == 0) Console.WriteLine(0); else { Console.Write(teak.Count + " "); for (int i = 0; i < teak.Count; i++) { Console.Write(teak[i]); if (i < teak.Count - 1) Console.Write(" "); } Console.WriteLine(); } } } }