
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I like to create a file handling class. It would be nice if some member functions could have the same names like the normal file handling functions, i.e. FileWrite, FileRead. But a class would always call the member functions with that name and it would not be possible to call the normal functions.
Is there something like a namespace „system“ or something similar, to call the normal file functions?
An example:
Class x
{
private:
void SyncToCloud();
public:
x();
~x();
void FileWrite();
void FileRead();
};
None of the member functions would be able to call FileWrite(), because the class would search for a member function with that name. If member function x::FileWrite() would call FileWrite() a recursive call would occur and maybe an endless loop.