R
Randy Yates
Hi,
Is there a way to write a class member function that does not
require an instantiation of the object to be invoked? For
example,
class MYCLASS
{
bool CheckIfMYCLASS(string &teststring);
}
int main(int argc, char* argv[])
{
MYCLASS* pmc;
if MYCLASS::CheckIfMYCLASS(argv[1])
{
pmc = new MYCLASS;
}
}
--
% Randy Yates % "And all that I can do
%% Fuquay-Varina, NC % is say I'm sorry,
%%% 919-577-9882 % that's the way it goes..."
%%%% <[email protected]> % Getting To The Point', *Balance of Power*, ELO
http://home.earthlink.net/~yatescr
Is there a way to write a class member function that does not
require an instantiation of the object to be invoked? For
example,
class MYCLASS
{
bool CheckIfMYCLASS(string &teststring);
}
int main(int argc, char* argv[])
{
MYCLASS* pmc;
if MYCLASS::CheckIfMYCLASS(argv[1])
{
pmc = new MYCLASS;
}
}
--
% Randy Yates % "And all that I can do
%% Fuquay-Varina, NC % is say I'm sorry,
%%% 919-577-9882 % that's the way it goes..."
%%%% <[email protected]> % Getting To The Point', *Balance of Power*, ELO
http://home.earthlink.net/~yatescr