Utility Class

Complete

OSNN Addict
Joined
25 Aug 2005
Messages
94
I want to create a seperate Utility class -- a "CUtil" class -- to do some basic fundamental stuff like string conversions.

OK, now, I can make all those methods as static so that I do not have to instantiate the CUtil class in order to do things.

um...

So how would that look in the calling routine?

Would it be something like this:
Code:
str_return = CUtil:FunctionName(stuff);
 
What programming language?

If it is C++, you would do:

Code:
str_return = CUtil::FunctionName(stuff);

That being said, are you sure that some of this stuff is not already available in one of the many STL libraries?
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie Electronic Punk Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. 🙁

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk Sazar Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,016
Messages
673,499
Members
5,630
Latest member
REALMTBENJOYER
Back