64,648
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <string>
using namespace std;
#define PR(host, port) printf("#connect kv error host[%s] port[%d]#", host.c_str(), port)
int main(int argc, char** argv)
{
string host = "192.168.1.101";
int port = 1001;
PR(host, port);
return 0;
}
float f,c;
#define pri printf("f=%g\nc=%g\n",f,c)
int _tmain(int argc, _TCHAR* argv[])
{
f=64.0f;
c=(5.0f/9.0f)*(f-32.0f);
pri;
return 0;
}