Quantcast
Channel: 《printf格式控制(你所不知道的printf妙用)》的评论
Browsing all 3 articles
Browse latest View live

作者:Fangzhen

%p 以地址形式输出 %#x 以带前缀(0x)的16进制形式输出 %#X 以带前缀(0X)的16进制形式输出 %#o 以带前缀(0)的8进制形式输出 如: #include int main() { int a=10; printf(“%#d\n”,a); printf(“%#x\n”,a); printf(“%#X\n”,a); printf(“%#o\n”,a); } 输出如下: 10 0xa...

View Article



作者:陈绍榕

呵呵,C写熟了这些都会知道的…不过楼主总结的很不错,你可以顺便看看sprintf,这个也很有用的

View Article

作者:小甜甜

咩,不错,谢谢

View Article
Browsing all 3 articles
Browse latest View live




Latest Images

Pangarap Quotes

Pangarap Quotes

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC