Contents

Develop
2003.04.23 10:54

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

Views 7273 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
1017 Develop [c++] p.58 연습문제 2번 hooni 2003.04.23 16296
1016 Develop [c++] RSA Sample 4 CPP hooni 2013.04.23 9181
1015 Develop [c++] SetWindowPos함수를 이용한 크기조절 예제 1 file hooni 2013.04.23 11077
1014 Develop [c++] String Tokenizer (나중에 c 코드로 변경해서 사용할 것) hooni 2013.04.23 11690
1013 Develop [c++] template 사용예 hooni 2003.04.23 7147
1012 Develop [c++] Win32 API 기본 출력인 MessageBox() 함수 사용 예제.. file hooni 2013.04.23 12628
1011 Develop [c++] Win32API를 이용한 ExitWindowsEx 사용한 예제코드 hooni 2013.04.23 7955
1010 Develop [c++] Window API(MFC) 오목 게임 file hooni 2003.04.23 10275
1009 Develop [c++] WinSock2.0 채팅 프로그램 ㅋㅋ file hooni 2013.04.23 8521
1008 Develop [c++] winsock을 이용한 서버,클라이언트와 ssl서버,클라이언트 file hooni 2013.04.23 7608
1007 Develop [c++] 가짜 인증서(하나은행) 프로그램 file hooni 2013.04.23 10750
1006 Develop [c++] 기초강좌 #01(입출력,영역지정) hooni 2003.04.23 11404
Board Pagination Prev 1 ... 9 10 11 12 13 14 15 16 17 18 ... 98 Next
/ 98