LEARN C++(Methods)

这篇博客建议在学习编程教程时手动输入例子并自行编译,通过实验和解决问题来增强理解。遇到困难要尝试自己解决,使用调试器,并对代码进行修改以观察不同结果。同时,参与测验以巩固知识,编写自己的程序来深化学习。
摘要由CSDN通过智能技术生成

Getting the most out of these tutorials

As you go through these tutorials, we recommend a number of practices to maximize your learning experience:
Type in the examples by hand and compile them yourself. Do not copy and paste them! This will help you learn where you commonly make errors, as well as becoming familiar with compiler warnings and errors. Don’t just transcribe the programs mindlessly – think about what each of the lines you are typing in does, and how it contributes to the overall program. If you encounter anything that you don’t understand, that’s something to investigate further.
As you make mistakes or find bugs in your programs, fix them. Try to solve your own problems before asking others for help. Learning how to find and fix errors is a key skill to successful programming. Don’t neglect learning how to use a debugger (we’ll explain how in a future chapter) – it’s a key tool in figuring out where your programs are going wrong.
Experiment with the examples. Change numbers and text to see what happens. Modify the programs to do additional things (e.g. if a program adds two numbers, make it add three numbers). Try to find different ways to break the programs (if a program asks you to enter a number, try entering a letter instead and see what happens). You’ll learn more by modifying the examples than by simply following them.
Plan to spend some time with the quizzes. If you’re new to programming, you may find these challenging (and that’s normal, as your brain acclimates to the programming mindset). Don’t be discouraged if you don’t get the right answer the first time. You may need to try several different approaches before you find a path to success. It’s okay to look at the answer if you’re really stuck. Just make sure you understand how the provided answer works before proceeding.
• Write your own short programs using the concepts you have learned. This will reinforce your learning and improve your retention.

—Repost from https://www.learncpp.com/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值