| ||||||||||
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 |
Re:根本就不需要开数组,贴一个直接逆转整数的codeIn Reply To:Re:根本就不需要开数组,贴一个直接逆转整数的code Posted by:try_and_try at 2007-07-20 02:31:35 int revers( int n ) { int i,r=0; for(i=0 ; n>0; i++) { r = r*10 + n%10; n /= 10; } return r; } 这个怎么样?^_^ Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator