printf输出引号问题
#include<stdio.h>int main(void)
{
printf("\n%40s%s\n"," ","See you soon, ");
printf("%40s%s\n"," ","Shalala");
return 0;
}
printf第二个“”具体的作用,加上对齐,而且语句也没有问题,去掉可以运行,可是语句字符有点问题!
有没有懂的大神,给讲解下! 能看懂这个吗?
#include<stdio.h>
int main(void)
{
printf("%s\n", "See you soon, ");
return 0;
} #include<stdio.h>
int main(void)
{
printf("%40s%s\n"," ","See you soon, ");
printf("%40s%s\n"," ","Shalala");
return 0;
}
先打印40个空格,后打印字符串,没有问题啊 看懂了,我理解错误,多谢大家了!
页:
[1]