string catyoustring(string str,int repeat,string pad_str,int pad_type){
string tempstr="";
while(repeat){
tempstr +=pad_str;
repeat--;
}
if(pad_type==0){
return str+tempstr;
}
else return tempstr+str+tempstr;
}
这个稍微改改就能符合笔试的要求。。。尼玛,我笔试半天写不出一个东西。。。
所以说我讨厌笔试C/C++
最新推荐文章于 2023-06-05 10:44:09 发布