C++ is indeed platform independent, it is one of the language taken by Microsoft for the .Net Framework, which converts it into the bytecode by JIT to further convert into machine language based on the target platform.