Contents

Develop
2003.04.23 10:54

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

Views 7274 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));
}


?

  1. [c] vc++ 에서 clrscr(), gotoxy() 함수 사용하기..

    Date2013.04.23 CategoryDevelop Byhooni Views14254
    Read More
  2. [c] 가변인자 함수(printf와 같은..)

    Date2013.04.23 CategoryDevelop Byhooni Views7179
    Read More
  3. [c] 가위 바위 보 서버, 클라이언트 소스코드

    Date2003.04.23 CategoryDevelop Byhooni Views8180
    Read More
  4. [c] 간단한 링크드 리스트(linked list) 자료형 예제..

    Date2003.04.23 CategoryDevelop Byhooni Views9841
    Read More
  5. [c] 간단한 소켓 프로그래밍 샘플

    Date2013.04.23 CategoryDevelop Byhooni Views8164
    Read More
  6. [c] 간단한 순위 루틴.. (정보처리기사)

    Date2003.04.23 CategoryDevelop Byhooni Views6874
    Read More
  7. [c] 간단한 순위 루틴.. (질문에 대한 답변)

    Date2003.04.23 CategoryDevelop Byhooni Views7469
    Read More
  8. [c] 간단한 자료구조(stack, queue, linked list) 구현 소스

    Date2003.04.23 CategoryDevelop Byhooni Views10120
    Read More
  9. [c] 간단한 점 이동 샘플 소스코드

    Date2013.04.23 CategoryDevelop Byhooni Views6546
    Read More
  10. [c] 간단한 채팅(클라이언트/서버) 프로그램 소스

    Date2003.04.23 CategoryDevelop Byhooni Views9070
    Read More
  11. [c] 거리와 각도를 입력받아서 좌표로 변환

    Date2013.04.23 CategoryDevelop Byhooni Views10818
    Read More
  12. [c] 게임 AI FSM 테스트 샘플 소스.. 꽤 괜찮은 소스..

    Date2013.04.23 CategoryDevelop Byhooni Views7370
    Read More
Board Pagination Prev 1 ... 17 18 19 20 21 22 23 24 25 26 ... 98 Next
/ 98