home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
OTHERUTI
/
TCPP30-3.ZIP
/
EXAMPLES.ZIP
/
INTRO27.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-18
|
326b
|
22 lines
// INTRO27.CPP--Example from Chapter 3, "An Introduction to C++"
#include <iostream.h>
#include <conio.h>
void tally(void);
int main()
{
while ( getch() != 'q')
tally();
return 0;
}
void tally(void)
{
static int called = 0;
called++;
cout << "Function tally called " << called <<" times\n";
}