• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 怎么這個程序不能通過?

    發表于:2007-05-25來源:作者:點擊數: 標簽:程序不能這個怎么通過
    [root@localhost c]# cat switch_case main() { unsigned short x; char c; scanf(%d,$c,x,c); switch (c) { case 'D': printf(%dD\n,x); break; case 'O': printf(%oO\n,x); break; case 'X': printf($xX\n,x); break; default : printf(input error\n !);
    [root@localhost c]# cat switch_case
    main()
    {
    unsigned short x;
    char c;
    scanf("%d,$c",&x,&c);
    switch (c)
    {
    case 'D': printf("%dD\n",x);
    break;
    case 'O': printf("%oO\n",x);
    break;
    case 'X': printf("$xX\n",x);
    break;
    default : printf("input error\n !");
    }
    }

    [root@localhost c]# gcc --version
    gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
    Copyright (C) 2002 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    [root@localhost c]# gcc switch_case
    /usr/bin/ld:switch_case: file format not recognized; treating as linker script
    /usr/bin/ld:switch_case:1: parse error
    collect2: ld returned 1 exit status
    [root@localhost c]#

    help me!!
    thanks i!!!

    我懂了。原來源程序名要有.c的。

    原文轉自:http://www.kjueaiud.com

    評論列表(網友評論僅供網友表達個人看法,并不表明本站同意其觀點或證實其描述)
    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>