While reading a tutorial or a book, it is often helpful to type - not copy and paste (even if you can!) - the code into the compiler and run it. Typing it yourself will help you toget used to the typical typing errors that cause problems and it will force you to pay attention to the details of programming syntax. Typing your program will also familiarize you with the general structure of programs and with the use of common commands. After running an example program - and aftermaking certain that you understand how it works - you should experiment with it: play with the program and test your own ideas. By seeing which modifications cause problems and which sections of the code are most important to the function of the program, you should learn quite a bit about programming
i get it form cprogramming.com.it's helpful to me.hope you too.
转载于:https://www.cnblogs.com/yang_sy/archive/2005/05/17/157027.html
本文强调了在阅读教程或书籍时,亲自输入代码到编译器并运行的重要性。通过亲手打字,学习者可以熟悉常见的打字错误,加深对编程语法细节的理解。文章建议在理解示例程序后进行实验,修改代码以测试个人想法,从而深入了解编程。
2287

被折叠的 条评论
为什么被折叠?



