C++学习(七):C++生成日期+流水号(201908070001、201908070002、201908070003)的uid
#include#includestd::stringhaha(){charbuffer[80];std::strings,num_tmp,date;s="20190807";staticstd::stringa="";staticintuid_number=0;if(s==a){uid_number+=1;}else{a=s;uid_number=1;}//num_tmp=to_string(u