c++ - Dereferencing a variable in python -
i moving program c++ python (for educational purposes) , had large amount of success. however, 1 particular issue appear having replicating following code in python:
float* myvar[x];
where x integer.
having tried:
myvar = id([0.0 in range(x)])
with no success, there method within python replicate c++ behaviour?
as part of project in moving code between 2 languages, using existing library written original author of code. function within library has function structure:
obj.function(float* myvar, float* myvar2,...)
where myvar defined above.
whilst using:
myvar = [0.0 in range(x)]
i error:
typeerror: int_t obj.function(float* myvar, float* myvar2,...) => not convert argument 1
as not experienced in c++, not know begin in solving problem.
wiki
Comments
Post a Comment