#include <bits/stdc++.h>
using namespace std;
#include <glog/logging.h>
#include <gflags/gflags.h>
DEFINE_string(ip,"100","ok");
/************************************* in --- out **********************************/
using ll = long long;
#define dbg(x) cout << #x << " = " << x << endl;
#define dbg2(x1, x2) cout << #x1 << " = " << x1 << " " << #x2 << " = " << x2 << endl;
template <typename T>
void W(T x){dbg(x);}
template <typename T>
void W(T x, T y) { dbg2(x, y); }
template <typename T>
void W(vector<T> Vector)
{
dbg(Vector.size());
for(auto res : Vector) dbg(res);
}
/********************************* random ********************************************/
mt19937 rnd(time(0));
int RandInt() { return rnd() % (INT_MAX); }
int RandInt(int mod) { return rnd() % mod; }
string RandString(int len)
{
string res = "";
for (int i = 0; i < len; i++) res = res + char(RandInt(26)+'a');
return res;
}
vector<string> RandStrings(int size, int len)
{
vector<string> res(size);
for (int i = 0; i < size; i++)
res[i] = (std::move(RandString(len)));
return res;
}
/***************************************************************************************/
int main(int argc,char* argv[])
{
google::InitGoogleLogging(argv[0]);
FLAGS_log_dir = "log";
LOG(INFO) << "OK" <<endl;
W(FLAGS_ip);
return 0;
}
【Template】
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.