|
어쩌죠?? 에러가 뜨네요^^;;
될 수 잇으면 에러 안 뜨게 해주시짐^^;;
하느리 님이 쓰신 글 :
: 헤구~~.
: 네~. 에러정도는 고쳐 드리져. -______________-a
:
: 1. main.c
: #include <stdio.h>
: extern int Add (int a, int b);
: extern int Sub (int a, int b);
: extern int Mult (int a, int b);
: extern int Dvd (int a, int b);
:
: void main()
: {
: char c;
: printf("연산자를 입력하세요.\n");
: scanf("%c",&c);
:
: int a,b;
: printf("두 수를 입력하세요.\n");
: scanf("%d %d",&a,&b);
:
: if ( c == '+' ) printf ("답:%d\n", Add (a,b));
: else if ( c == '-' ) printf ("답:%d\n", Sub (a,b));
: else if ( c == '*' ) printf ("답:%d\n", Mult (a,b));
: else if ( c == '/' ) printf ("답:%d\n", Dvd (a,b));
: else printf ("너 죽고잡냐 ?");
: }
:
: 2. add.c
: int Add (int a, int b)
: {
: return (a+b);
: }
:
: 3. Sub.c
: int Sub (int a, int b)
: {
: return (a-b);
: }
:
: 4. Mult.c
: int Mult (int a, int b)
: {
: return (a*b);
: }
:
: 5. Dvd.c
: int Dvd (int a, int b)
: {
: if ( b ) return (a/b);
: return 0;
: }
:
: 우이씨~~~, 결국 풀어주고 말았다....
: ㅠㅠ
:
:
: 내 개그는 똥꼬바지야 님이 쓰신 글 :
: : #include <stdio.h>
: : void main()
: : {
: : int c;
: : printf("연산자를 입력하세요.\n");
: : scanf("%c",&c);
: :
: : int a,b;
: : printf("두 수를 입력하세요.\n");
: : scanf("%d %d",&a,&b);
: :
: : void sub1()
: : {
: : if(c==+)
: : {
: : exturn int a,b;
: : int add;
: : add=a+b;
: : printf("%d\n",add);
: : }
: : }
: :
: : void sub2()
: : {
: : if(c==-)
: : {
: : exturn int a,b;
: : int sub;
: : sub=a-b;
: : printf("%d\n",sub);
: : }
: : }
: :
: : void sub3()
: : {
: : if(c==*)
: : {
: : exturn int a,b;
: : int mul;
: : mul=a*b;
: : printf("%d\n",mul);
: : }
: : }
: :
: : void sub4()
: : {
: : if(c==/)
: : {
: : exturn int a,b;
: : int div;
: : div=a/b;
: : printf("%d\n",div);
: : }
: : }
|