TO猫:格式化输出??那么以上的那个%s输出了些什么呢?! 
又怎如何用呢?!?TO新:能否说得详细些呢?!我不是读电脑专业的,也没学过C!!谢谢两位了!!

解决方案 »

  1.   

    第一次输出$array[0]的值。
    第二个输出$array[1]的值.
      

  2.   

    % - a literal percent character. No argument is required.  
    b - the argument is treated as an integer, and presented as a binary number.  
    c - the argument is treated as an integer, and presented as the character with that ASCII value.  
    d - the argument is treated as an integer, and presented as a (signed) decimal number.  
    u - the argument is treated as an integer, and presented as an unsigned decimal number.  
    f - the argument is treated as a float, and presented as a floating-point number.  
    o - the argument is treated as an integer, and presented as an octal number.  
    s - the argument is treated as and presented as a string.  
    x - the argument is treated as an integer and presented as a hexadecimal number (with lowercase letters).  
    X - the argument is treated as an integer and presented as a hexadecimal number (with uppercase letters).