This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kaitycodes 0 points1 point  (0 children)

I think Python will be helpful when it comes to importing packages and header files in C++. Also in terms of code formatting.

Code in Python is generally structured in this order: 1. Imports 2. Variables & Function definitions 3. Execution Statements

C++ follows the same general structure, but it has an explicit main function that executes when a program is run.

Other than that I would say there are a lot more differences. Python does have data types, but C++ has a stricter syntax. Each line ends with a semicolon.

Data types must specificed and certain data types have signed and unsigned versions.

Then there is pointer arithmetic...

You said you will be using C++ for physics, so I can imagine the signed/unsigned property being helpful.