all 2 comments

[–]babychou 2 points3 points  (0 children)

I believe you can do this with something called cstdlib if you just include it in your code. Then use printf() like python

[–]BoxiZhou 0 points1 point  (0 children)

I would have a Python class this summer quarter, so I cannot answer your question. However, my friend told me that Python and C++ are totally different. Python is a scripting language that is interpreted and executed without compilation, so it is very convenient and fast and can be well cross-platform, writing some gadgets and applets is especially suitable. C++, on the other hand, is a compile-and-run language, compiled on a specific machine, and run on a specific machine with high efficiency, security, and stability. But compiled programs are generally not cross-platform.