Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Convert a Python Code to C++ Programming language

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 652
    Answer it

    I want to stream .dat files from a file i created in python, i wrote the python code and it worked great but i can't write it in C++, i need help to write that code in C++, Thank you.

     

    The python code is as following :

     

    for ix in range(0,nKx):
        fpx=open(r"xFestAna\beleg1Feld%i.dat"%(ix), "w")
        fpx.write("#\n")
        x=xMin+ix*dx
        for iy in range(0,nKy):
            y=yMin +iy*dy
            fpx.write("%6.2f   %6.2f   %6.2f " %(x,y,feldKor[ix][iy]))
            fpx.write("\n")
        fpx.close()

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: