4 Réponses
+ 4
Theoretically, it's possible. I don't think though that anyone has coded a converter yet. It would take years to fully implement both languages.
+ 12
Sure why not? Computer language is no different than the language we use in day-to-day communication. 😉
However if you're looking for an automated tool like a Google Translator to do the job, I think you're out of luck.
+ 2
No, for example, the type of a c++ variable must be known at compile time. But in most cases, you can create programs that do the same or look very similar, of course.
+ 1
I think cython (http://cython.org) and nuitka (http://nuitka.net/pages/overview.html ) translate python to C, which is compatible to C++.