(Q) Static typingΒΆ
Goal: I will execute C++ code to learn how static typing works.
Instructions: Create a new project in Qt Creator.
In Python, the name of the main program is usually main, but we could use any other name. In C++, the name of the main function must be main, because the compiler starts program execution from a function the name of which is main.
Therefore in PyCharm, it is easy to implement several tasks in the same project to the files of their own. In Qt Creator, a project means a whole that consists of code files. Files under a project belong to that programming project.
You can find the answers to the following questions by modifying a program and then testing it to see what happens.