печально быть антисоциальным - Post a comment

Jul. 31st, 2006

[info]smejmoon

08:57 am

C++:

int c = 666;
if (c=10)
{
//izpildīsies šis zars, jo c=10 atgrieztā vērtība ir 10, kas ir vienāda ar patiesu salīdzināšanā ;
}
else
{
//nevis šis;
}


jāatzīst Pitonā tā nebūs:

>>> c = 6
>>> if c = 10:
Traceback ( File "", line 1
if c = 10:
^
SyntaxError: invalid syntax
>>>

Tapēc man vienkārši ir paranoja.

Read Comments

Reply:

From:
( )Anonymous- this user has disabled anonymous posting.
Username:
Password:
Subject:
No HTML allowed in subject
  
Message:

Notice! This user has turned on the option that logs your IP address when posting.