关于scanf跟printf的提问

P1035 [NOIP2002 普及组] 级数求和

AKenclrtsM @ 2020-10-29 09:15:57

大佬们请问一下scanf跟print括号里"%"后面的字符对应什么类型的字符?


by 天南星魔芋 @ 2020-10-29 10:05:37

@zhuzhu8127 %f 吧


by Maxmilite @ 2020-10-29 10:34:47

@zhuzhu8127

\%lf

by Maxmilite @ 2020-10-29 10:35:36

float \rightarrow \%f double \rightarrow \%lf f \rightarrow float lf \rightarrow long \ float

by zhuzhu8127 @ 2020-10-29 15:06:57

@Maxmilite 谢谢~


by AKenclrtsM @ 2020-11-03 12:40:38

好,谢谢各位大佬


上一页 |