啊哈C第3课颜色和运算资料.ppt

第 3 课 颜 色 和 运 算 福州实验小学 吴贻小 小测,在屏幕上输出“我爱信息学” 1 P17,一起来找茬 2 #includestdio.h #includestdlib.h int main() { print(hi) system(“pause”); return 0; } 【一起来找茬 】 关于P15,system(“pause”);的讨论 3 system(“pause”);原意是让系统暂停,但是,除了调试过程中临时使用,我们的信息学奥赛最后的程序中决不能写这句话。 【system(“pause”); 】 如何在输出中换行 4 #includestdio.h #includestdlib.h int main() { printf(ni hao); return 0; } 【换行符号: \n 】 \n * ** *** * * * * * * * * * * * * * * * 【P17练习】 【P17练习】 #includestdio.h #includestdlib.h int main() { printf( *\n * *\n* *\n * *\n *\n); return 0; } P17练习第二幅参考答案: 更换输出颜色 5 #includestdio.h #

文档评论(0)

1亿VIP精品文档

相关文档