I have two functions read()
and write()
. I read a file in the read()
function and store a line in the header in a variable. Now i want the write()
function to write that same line to a new file. But how can i use the same variable or information from the other function? What is the way to do this?
Here is some info about the code:
After including necessary files, it says this
HX_INIT_CLASS(HxCluster,HxVertexSet);
The name of the class is HxCluster and it would be great if someone can tell me why it is not like we define classes in the simple way: class class_name {};
The I have many functions out of which two are read()
and write()
. They both take one argument only which is the file to be read and the file to be written to in the respective cases. I don't know if writing the code for that will help here.