اگر خواستید میتونید بجای استفاده از توابع معمولی از عبارات لامبدا (lambda) استفاده کنید:#include <iostream>#include <boost/algorithm/string/replace.hpp>#include <string>using namespace std;int main(){ long tmpNum; string inputNumStr; string perNumStr; string enNumStr; auto enToPerNum = []( string str ) -> string { boost::replace_all( str, "0", "۰" ); boost::replace_all( str, "1", "۱" ); boost::replace_all( str, "2", "۲" ); boost::replace_all( str, "3", "۳" ); boost::replace_all( str, "4", "۴" ); boost::replace_all( str, "5", "۵" ); boost::replace_all( اوبونتو...
ما را در سایت اوبونتو دنبال می کنید
برچسب : نویسنده : استخدام کار ubuntu بازدید : 258 تاريخ : دوشنبه 8 شهريور 1395 ساعت: 20:57