...

View Full Version : void functions and sub routines



velious
03-29-2004, 03:43 AM
in C++ are void functions the same as sub routines in vb script, sense void functions do not return vales and neither do sub routines in vb?
would that be an equal comparison?

Mhtml
03-29-2004, 05:17 AM
Well sort of, I mean, sub routines can return a value (by setting a variable with the same name as the sub no?) ...

I (as with most people) typically use void functions when you are using a pointer to something. Or of course you may be using void* which is different entirely.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum