C语言里面字符串操作是关于格式的参数
2009-02-04 10:46
381 查看
specifier | Output | Example |
---|---|---|
c | Character | a |
d or i | Signed decimal integer | 392 |
e | Scientific notation (mantise/exponent) using e character | 3.9265e+2 |
E | Scientific notation (mantise/exponent) using E character | 3.9265E+2 |
f | Decimal floating point | 392.65 |
g | Use the shorter of %e or %f | 392.65 |
G | Use the shorter of %E or %f | 392.65 |
o | Signed octal | 610 |
s | String of characters | sample |
u | Unsigned decimal integer | 7235 |
x | Unsigned hexadecimal integer | 7fa |
X | Unsigned hexadecimal integer (capital letters) | 7FA |
p | Pointer address | B800:0000 |
n | Nothing printed. The argument must be a pointer to a signed int, where the number of characters written so far is stored. | |
% | A % followed by another % character will write % to stdout. |
相关文章推荐
- 关于C语言中字符串操作的几个函数的总结
- 【C语言】编写一个函数reverse_string(char * string)(递归实现),将参数字符串中的字符反向排列,不能使用C函数库中的字符串操作函数。
- C语言关于字符串操作的安全问题
- 【c语言】编写一个函数reverse_string(char * string) 实现:将参数字符串中的字符反向排列。 要求:不能使用C函数库中的字符串操作函数
- c语言:错误C4473:“scanf_s”没有为格式字符串传递足够的参数
- 【C语言】编写一个函数reverse_string(char * string) 实现:将参数字符串中的字符反向排列。要求:不能使用C函数库中的字符串操作函数。
- C语言 编写一个函数,将参数字符串中的字符反向排列。要求:不能使用C函数库中的字符串操作函数,
- C语言 编写一个函数reverse_string(char * string) 实现:将参数字符串中的字符反向排列。 要求:不能使用C函数库中的字符串操作函数。
- 关于 请求参数 传递时 参数字符串里面包含 特殊符号的 解决~
- 关于C语言字符串操作的几个题目
- [C语言] 时间操作,把1970年开始秒数计算的时间,转换为字符串格式输出;
- 关于结构体里面的字符串指针输出出现乱码的问题与结构体数组作为参数传值的问题
- C语言中关于字符串的操作(转)
- c# 关于WCF 接口参数 为 xml 格式的 字符串(string) 的 数据 处理
- 关于字符串的常用操作 截取substring、分割split、替换replace
- 关于C语言字符数组、字符串和指针的相关问题
- C语言字符串操作总结大全(超详细)
- C语言字符串操作函数
- C语言字符串操作函数 - strcpy、strcmp、strcat、反转、回文
- 时间字符串格式相互转换——C语言