home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Source Code
/
By the Book
/
Learn C++ (CodeWarrior)
/
Chap 04.03 - protoTester
/
protoTester.cp
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-10-20
|
328 b
|
24 lines
|
[
TEXT/CWIE
]
#include <iostream.h>
void MyFunc( short param1,
short param2 = 0,
short param3 = 0 );
int main()
{
MyFunc( 1 );
MyFunc( 1, 2 );
MyFunc( 1, 2, 3 );
return 0;
}
void MyFunc( short param1,
short param2,
short param3 )
{
cout << "MyFunc( " << param1
<< ", " << param2
<< ", " << param3
<< " )\n";
}