我正在尝试使用 sscanf 来分隔具有提升日期的字符串。这是代码:
std::sscanf(ss.c_str(),"%ls\t%lf\t%lf",&date1_,&num1_,&num2_);
我收到以下错误:
warning: format ‘%ls’ expects type ‘wchar_t*’, but argument 3 has type ‘boost::gregorian::date*’
谁能建议我解决这个问题。谢谢!
我正在尝试使用 sscanf 来分隔具有提升日期的字符串。这是代码:
std::sscanf(ss.c_str(),"%ls\t%lf\t%lf",&date1_,&num1_,&num2_);
我收到以下错误:
warning: format ‘%ls’ expects type ‘wchar_t*’, but argument 3 has type ‘boost::gregorian::date*’
谁能建议我解决这个问题。谢谢!