Dear all,
I have a problem with compiling my program. I need to write to a file sequence of symbols. But there is a problem with symbol "\".
making_python_files.c:31: error: stray \ in program
making_python_files.c:31: error: expected ) before n
making_python_files.c:32: error: invalid operands to binary % (have char * and float)
making_python_files.c:32: error: expected ) before string constant
making_python_files.c:32: warning: format not a string literal and no format arguments
The error massages concern line with fpriptf command below.
I will be very grateful for any advises.
insertCode:main(void) { FILE *fp; fp=fopen(filename,"w"); fprintf(fp,"print "\n".join(map(lambda x:"); fprintf(fp,""%.6f %.6f %.6f %.6f %.6f %.6f" % tuple(x), molsystem.conf[molname]))"); fclose(fp); }



LinkBack URL
About LinkBacks



