[阅读: 684] 2005-02-22 03:56:55
#include "stdafx.h"
#include "io.h"
#include <conio.h>
#include <ctype.h>
void Test(bool bRun)
{
if (bRun == true)
{
_cputs("bRun == TRUE\r\n");
}
else if (bRun == 2)
{
_cputs("bRun == 2\r\n");
}
else
{
_cputs("case 3\r\n");
}
char buffer[83] = { 80 }; /* Maximum characters in 1st byte */
_cgets( buffer);
}
int _tmain(int argc, _TCHAR* argv[])
{
Test(2);
return 0;
}