A
Abhi
Hi all,
I am using .net for C++ and I would like to write some variable values
to some files.
I will be using that file in many member functions of the class. So I
declared the file variable names in class.
And I declared that to a file name in one member function.
Example:
class className
{
public:
void function();
private:
ofstream constRad;
}
void className::function()
{
constRad ("filename.txt");
}
and in other member functions I used this variable "constRad" to write
some variable values in the textfile.
But am getting an error as
"Error C2064 : term does not evaluate to a function using 1 arguments"
Could you please help me in this.
Thanks
Abbi.
I am using .net for C++ and I would like to write some variable values
to some files.
I will be using that file in many member functions of the class. So I
declared the file variable names in class.
And I declared that to a file name in one member function.
Example:
class className
{
public:
void function();
private:
ofstream constRad;
}
void className::function()
{
constRad ("filename.txt");
}
and in other member functions I used this variable "constRad" to write
some variable values in the textfile.
But am getting an error as
"Error C2064 : term does not evaluate to a function using 1 arguments"
Could you please help me in this.
Thanks
Abbi.