I am new to C++ and this forum. I want to write some C++ programs. I have an Intel based iMac at home and I also have a Windows 7 Professional 32 bit Intel based laptop. I am very confused as to which compiler to install on my Windows machine, so that the code works in both Windows and Mac.
On my Mac, I already have g++ compiler. I also have XCode installed on Mac. Now, all I just need is some C++ compiler for my Windows machine, such that I can transfer the codes back and forth between the two computers. For example, I may write a program on my laptop and I may put them into a flash drive and transfer them to my Mac and they also work there. I am confused whether to install Borland C++ Builder, or Turbo C++ or Visual C++ on the Windows machine or is there anything else which does a better job.
If you transfer the code as text files and just compile it at each machine then you won't have to worry about it. Otherwise I'm pretty sure GCC works on Windows.