I’ve been running the Editor in Windows on my MacBook Pro using Bootcamp for over a year; on both Windows 8.x and Windows 10. However, I usually use the OS X version of the Editor. version 4.10.4 is super stable on OS X.
I’m assuming by a “way to code” you mean an IDE to program in C++ on OS X? If so you’re in luck! You can use Apple’s free Xcode IDE to program in C++ in OS X. You can get Xcode for free in the Mac App Store here: Xcode on the Mac App Store