[Tutor] First steps for C++/Qt developers

Dave Angel davea at ieee.org
Wed May 12 14:25:36 CEST 2010



M. Bashir Al-Noimi wrote:
> <snip>
>> <snip>
>>    
> humm, you confused me I'm still a newbie and I don't know anything 
> about differences between C++ & python even I couldn't understand you. 
> How C++ is a static language !??!!
>
In C++, every variable is declared, and the type of that variable is 
static over its lifetime.  The only flexibility there is that a variable 
may also get a value of some derived type of its declared type.  In 
Python, variables have no fixed type at all, only the objects (that 
they're bound to) have type.  A variable can be an integer one time, a 
string the next, and an arbitrary object after that.

DaveA



More information about the Tutor mailing list