int cpp_main(int /*argc*/, char * /*argv*/[]) { print_c_info(char(0), "char"); #ifndef BOOST_NO_WREGEX print_c_info(wchar_t(0), "wchar_t"); #endif print_cpp_info(char(0), "char"); #ifndef BOOST_NO_WREGEX print_cpp_info(wchar_t(0), "wchar_t"); #endif #if !BOOST_WORKAROUND(__BORLANDC__, < 0x560) boost::c_regex_traits<char> a; print_sort_syntax(a, "boost::c_regex_traits<char>"); #ifndef BOOST_NO_WREGEX boost::c_regex_traits<wchar_t> b; print_sort_syntax(b, "boost::c_regex_traits<wchar_t>"); #endif #endif #ifndef BOOST_NO_STD_LOCALE boost::cpp_regex_traits<char> c; print_sort_syntax(c, "boost::cpp_regex_traits<char>"); #ifndef BOOST_NO_WREGEX boost::cpp_regex_traits<wchar_t> d; print_sort_syntax(d, "boost::cpp_regex_traits<wchar_t>"); #endif print_ctype_info(char(0), "char"); #ifndef BOOST_NO_WREGEX print_ctype_info(wchar_t(0), "wchar_t"); #endif #endif return 0; }
bool customers::isfound(const string &input_str, customer_info *c_info) { for (int i = 0; i < customer_cnt; i++) { if (all_customer[i].cid == input_str) { c_info->cid = all_customer[i].cid; c_info->cname = all_customer[i].cname; c_info->in_date = all_customer[i].in_date; c_info->in_time = all_customer[i].in_time; c_info->out_date = all_customer[i].out_date; c_info->out_time = all_customer[i].out_time; cout << "\n\t=== Customer ID #" << input_str << " Is Found ===\n"; print_c_info(c_info); return true; } } cout << "\n\t=== [No Customer ID # " << input_str << " Was Found] ===\n"; return false; }