Advertisement

Optional Variables...

Started by October 01, 2000 09:37 PM
1 comment, last by NetArc 24 years, 3 months ago
Im not sure if thats what it is but.... what im looking for is something similiar to VB... Where you had a sub for vb: Sub TestSub( Integer X, Integer Y, Optional Integer Z = 0 ) How do you get the optional for c++? Void TestSub( int x, int y, ???? ); any help? -NetArc
-NetArc
Have you tried

void TestSub(int x, int y, int z = 0);


Steve 'Sly' Williams
Tools Developer
Krome Studios
Steve 'Sly' Williams  Monkey Wrangler  Krome Studios
turbo game development with Borland compilers
Advertisement
Cool that seems to work... thx for the help!!




-NetArc
-NetArc

This topic is closed to new replies.

Advertisement