.strMacAddress.Format(_T("%0.12llx"), ullMacAddress);
strID.Format(_T("%llu"), ullID);
这些事什么意思,能详解吗?格式化

解决方案 »

  1.   

    %llu是把64位无符号整数格式化成字符串
    llx是以16进制格式显示64位数?
      

  2.   

    本帖最后由 VisualEleven 于 2013-05-22 10:46:39 编辑
      

  3.   

    A format specification, which consists of optional and required fields, has the following form: %[flags] [width] [.precision] [{h | l | ll | I | I32 | I64}]type Each field of the format specification is a single character or a number signifying a particular format option. The simplest format specification contains only the percent sign and a type character (for example, %s). If a percent sign is followed by a character that has no meaning as a format field, the character is copied to stdout.