convert python to c++ -


I want to translate the following Python code into C ++ Can someone help me ??

  # - * - coding: UTF-8 - * - print ("Hello") FECHER = OPEN ('S9.9TT', 'R') CSMF = Open Ligne = ligne = 32] + ligne [33] + ligne [34] + ligne [35] if ((id_can == '01a7 ') for ligne = ligne = 19_MEF.txt', 'w') for ligne = ) Or (id_can == '01a8')): X = int ("0x" + ligne [44] + ligne [45] + ligne [41] + ligne [42], 16) if x> 0x7FFF: x - = 0x10000 x = float (x) /17.5xd = float (x) * 57.29578 y = int ("0x" + ligne [50] + ligne [51] + ligne [47] + ligne [48] 16) If y & gt; 0x7FFF: y - = 0x10000 y = float (y) / 17.5 yd = float (y) * 57.29578 z = int ("0x" + ligne [56] + ligne [57] + ligne [53] + ligne [54] 16) If z & gt; 0x7FFF: z - = 0x10000 z = float (y) / 17.5 zd = float (z) * 57.29578 # print ("0x" + ligne [50] + ligne [51] + ligne [47] + ligne [48]) chain = "Id =" + id_can + "x =" + str (x) + "xd =" + str (xd) + "y =" + str (y) + "yd =" + str (yd) + "z = "+ Str (z) +" zd = "+ str (zd) +" \ n "Print (Chin) # Print (" Central TAFT ") print (i) i = i + 1 cs_mef.written (str (i )) CS_MEF.write (chaine) print (i) fichier.close () CS_MEF.close ()    

You can use the generated code still will depend on Python libraries though. If your goal code is to be compiled faster, then Cython will help you to complete it.

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -