c = -100;
if (c < 0):
pass
class BasicAttrType:
counterGauge = 0x1000
counterPeg = 0x2000
conterAcc = 0x3000
t = BasicAttrType.counterGauge
print t
a = ''
print a
result = 1234 * 567
print result
import math # python has only one way to importing file.
from math import *
# import inc.MyFile
# import inc.MyFile
# import gui.xinterface
import math
class PersonRecord:
ageM = ''
phoneNumberM = 0
nameM = ''
def stepAndConvert(a,n):
b = a + str(n) # step n chars ahead
return b # NO: Dangerous cast of const char* to int*
data = "abcdefghijklmnop"
anInt = 3;
i = stepAndConvert(data, anInt)
print i
INT_MIN = -2147483648
INT_MAX = 2147483647
UINT_MAX = 4294967295
i = 42
ui = 2222222242;
j = i - ui;
print j
zero = 0;
one = 1;
minusOne = zero - one;
print minusOne
result = one + minusOne;
print result
#pid1 = fork(); # NO: should use pid_t
#pid2 = fork();
famousClimber = "Edmund Hillary"; # Uses Emc as prefix
print famousClimber
class EmcArray:
def __init__(self,size):
pass
false = 0;
true = 1;
"""
i = 0;
for i in range(last()):
pass
for i in range(first()):
pass
"""
def emcMax(a, b):
if a>b:
return a
return b
def foo(i,j):
m = emcMax(i, j); # usage of emcMax
q = 0 # usage of class EmcQueue<int> and
s = 0 # EmcQueue<int>:s default constructor
class EmcQueue:
pass
class DangerousString:
def __init__(self,cp):
pass
def char(self):
pass
def main(self):
return 0
func(f1(), f2(), f3()) # f1 may be evaluated before f2 and f3,
# but don't depend on it!
a = [0,0,0]
i = 0
a[i] = i;
i += 1
print i