Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
sprintf()导致RE请问系统是不是不能使用sprintf()函数: void print(int x,int cal) { char *res; sprintf(res,"%03d",x/10000); cout<<res<<"-"; sprintf(res,"%04d",x%10000); cout<<res<<" "<<cal<<endl; } 这段代码导致RE,WHy Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator