V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
chiang
V2EX  ›  问与答

求助:想在皮皮书屋看一本英文版的书,自己买了中文版,可是看着翻译果断还是想去看电子版。

  •  
  •   chiang · Jun 18, 2012 · 4475 views
    This topic created in 5071 days ago, the information mentioned may be changed or developed.
    注册时被这题目难道了,没有学过,在此求助
    #include <stdio.h>
    #define ARRAY_SIZE 10
    int main()
    {
    int arr[ARRAY_SIZE] = {51,116,53,120,85,66,71,98,86,100};
    int i, j;
    for(i = 0; i < ARRAY_SIZE; i++)
    for(j = 0; j < ARRAY_SIZE-1; j++)
    if(arr[j] > arr[j+1]) {
    arr[j] ^= arr[j+1];
    arr[j+1] ^= arr[j];
    arr[j] ^= arr[j+1];
    }
    for(i = 0; i < ARRAY_SIZE; i++)
    printf("%c", arr[i],arr[i]);
    }
    输入以上程序的执行结果( )。
    谢谢了
    7 replies    1970-01-01 08:00:00 +08:00
    txx
        1
    txx  
       Jun 18, 2012
    有这发帖的时间自己跑一下了。。。。
    liuhang0077
        2
    liuhang0077  
       Jun 18, 2012
    跑一下 或者换道题
    chiang
        3
    chiang  
    OP
       Jun 18, 2012
    话说,我真不知道这是什么类型的题目,因为...我不是程序员
    other2f
        4
    other2f  
       Jun 18, 2012   ❤️ 1
    35BGUVbdtx
    chiang
        5
    chiang  
    OP
       Jun 18, 2012
    @other2f 谢谢
    flyfire
        6
    flyfire  
       Jun 19, 2012
    BubbleSort
    kava
        7
    kava  
       Jun 19, 2012
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3834 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 05:01 · PVG 13:01 · LAX 22:01 · JFK 01:01
    ♥ Do have faith in what you're doing.