<span style="font-size:18px;">// argsDefine.cpp : 定义控制台应用程序的入口点。
/************************************************************************/
/*
desc:impl changeable args function
author:zhengjinwei
time:2014/06/25
platform:windows and linux
*/
/************************************************************************/
#include "stdafx.h"
#include <process.h> // for call system(...)
#include<iostream>
using namespace std;
#ifdef _DEBUG
#ifdef WIN32
#define LOG(format ,...) fprintf(stdout, format, ##__VA_ARGS__)
#else
#define LOG(format , args ,...) fprintf(stdout , format , ##args)
#endif
#else
#ifdef WIN32
#define LOG(format ,...)
#else
#define LOG(format , args ,...)
#endif
#endif
int _tmain(int argc, _TCHAR* argv[])
{
LOG("%s%d%s","zhengjinwei is ",23,"year's old");
system("pause");
return 0;
}
</span>