中国开发网: 论坛: 程序员情感CBD: 贴子 100707
Miracle: 最后改成这样,结果一样
// tt.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <conio.h>

#define FALSE 0
#define TRUE (!FALSE)

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[20] = { 2 }; /* Maximum characters in 1st byte */
_cgets( buffer);
}

int _tmain(int argc, _TCHAR* argv[])
{
Test(2);
return 0;
}
夫习拳艺者,对已者十之七八,对人者,仅十之二三耳。拳艺之道,深无止境。得其浅者,一人敌,得其深者,何尝不万人敌耶!
我的Google Picasa相册
我的新BLOG

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录