for(i=0; n > 0; n /= 10)
strint[i++] = (n%10)+'0';
for(j=0; j < i/2; j++) {
temp = strint[j];
strint[j] = strint[i-j-1];
strint[i-j-1] = temp;
}
strint[i] = 0;
printf("%s\n", strint);
Hi. This is hyunju's blog. it is for OOP344 course and i hope that it will be filled with some c++ or c source codes. :)
댓글 없음:
댓글 쓰기