Contents

Develop
2003.04.23 10:54

[c] 신기한 atoi함수(www.game79.net)

Views 7294 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
#include <stdio.h>

int myatoi(char *str){
        int result=0;
        int i=0;

        while( str[i] ){
                result = result*10 + str[i] - '0';
                i++;
        }

        return  result;
}

void main(){
        char num[10]="1234";

        printf("%d",myatoi(num));
}


?

List of Articles
No. Category Subject Author Date Views
313 Develop [asp] 폼메일 예제와 메일 포워딩 프로그램 file hooni 2013.04.23 7159
312 Develop [c] 바로 보고 정리할 것.. ㅋㄷㅋㄷ file hooni 2013.04.23 7158
311 Develop [c] 달팽이 배열? 인지 먼지.. ㅋㅋ hooni 2013.04.23 7153
310 Develop [pdf] 포인터 문법 정리 (C pointer) file hooni 2013.04.23 7147
309 Develop [js] 여러가지 트리(tree) 모음.. ㅋㅋ file hooni 2013.04.23 7138
308 Develop [c++] 인라인 함수에 대한 설명 hooni 2013.04.23 7136
307 Develop [c] 문자열 뒤집기 초간단 샘플 코드 ㅎㅎ hooni 2013.04.23 7136
306 Develop [php] 초간단 웹 카운터.. file hooni 2003.04.23 7129
305 Develop [c] 베이지언(Bayesian) 패턴인식 과제 ㅋㅋ file hooni 2013.04.23 7121
304 Develop [c] 단기과정[01/14] 피보나치, 파스칼.. 파일입출력 file hooni 2003.04.23 7118
303 Develop [c] 테트리스3D (Tetris 3D) file hooni 2013.04.23 7118
302 Develop [js] 2차 잉여.. (Quadratic reciprocity) 계산.. file hooni 2013.04.23 7100
Board Pagination Prev 1 ... 40 41 42 43 44 45 46 47 48 49 ... 71 Next
/ 71