12 #ifndef __UTILINPUT_HEADER__
13 #define __UTILINPUT_HEADER__
28 #define ParamCheck1(exp) \
29 std::cout << exp << " in " << __func__ << "() in " << __LINE__ << " in " \
38 for (
USI i = 0; i < len; i++) {
39 res += (int)mystr[len - 1 - i] * t;
50 bool ReadLine(ifstream& ifs, vector<string>& result);
59 void DealData(
const vector<string>& vbuf, vector<OCP_USI>& obj, vector<T>& region)
63 for (
auto& str : vbuf) {
64 auto pos = str.find(
'*');
66 if (pos != string::npos) {
68 OCP_USI num = stoi(str.substr(0, pos));
69 USI val = stoi(str.substr(pos + 1, len - (pos + 1)));
71 region.push_back(val);
Definition of build-in datatypes and consts.
unsigned int USI
Generic unsigned integer.
unsigned int OCP_USI
Long unsigned integer.