default argument

Hi,
How can I write default argument in a function prototype for a value by referece
Ex:
struct
{
int a;
float b;
}myStruct;

myStruct var;

If I want to use above variablein a function call by reference,then what is the argument default value?

Thanks
[305 byte] By [sri_1221] at [2007-11-19 16:05:30]
«« Link
»» driverSKD
# 1 Re: default argument
Hello! :wave:

This is the Visual Basic 6.0 Forum, you need to post this in one of the C++ Forums (http://www.dev-archive.com/forum/index.php?)

If you want to supply default values to arguments in C++ you should look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/ators_32.asp

If you want more info on arguments in Visual Basic have a look here:
http://msdn2.microsoft.com/en-us/library/ddck1z30.aspx
HanneSThEGreaT at 2007-11-9 20:23:47 >
# 2 Re: default argument
Er, this is a VB forum. You have posted either a c, c++ or c# question.

BTW: your struct should take a name;
Pinky98 at 2007-11-9 20:24:52 >