printf你会吗?:-)

https://cplusplus.com/reference/cstdio/printf

A format specifier follows this prototype: %[flags][width][.precision][length]specifier

p Pointer address b8000000

n Nothing printed. The corresponding argument must be a pointer to a signed int. The number of characters written so far is stored in the pointed location.

# Used with o, x or X specifiers the value is preceeded with 0, 0x or 0X respectively for values different than zero.Used with a, A, e, E, f, F, g or G it forces the written output to contain a decimal point even if no more digits follow. By default, if no digits follow, no decimal point is written.

* The width is not specified in the format string, but as an additional integer value argument preceding the argument that has to be formatted.

.number For g and G specifiers: This is the maximum number of significant digits to be printed.

.* The precision is not specified in the format string, but as an additional integer value argument preceding the argument that has to be formatted.

ll long long int unsigned long long int

int vsnprintf (char * s, size_t n, const char * format, va_list arg ); Write formatted data from variable argument list to sized buffer

int vfscanf ( FILE * stream, const char * format, va_list arg ); Read formatted data from stream into variable argument list

v应该是variable的意思, f:file s:string n:n个 f:format

posted @   Fun_with_Words  阅读(93)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
历史上的今天:
2021-12-19 百度网盘是如何检测是否安装了客户端的?
2021-12-19 A Child's History of England.59
2021-12-19 EDA学习笔记
2021-12-19 Stockfish和GNU Chess棋力都很强
2021-12-19 PyTorch与张量简介









 和7张牌。

点击右上角即可分享
微信分享提示