Click here to Skip to main content
15,887,915 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
In learning math or painting, we try and try and finally we get the result. But I don't know how to learn to write code! I guess I'm dumb and can never give an idea about codes...

What I have tried:

Overview of algorithms
Review simple codes
Posted
Updated 11-Mar-23 5:51am
Comments
Member 15627495 11-Mar-23 10:55am    
code is instructions, commands for the computer which run them.

read about, work, work, work with computers, write your own code as starter.
Maciej Los 11-Mar-23 11:18am    
Buy a book(s). Read it. Try included code.

I highly recommend the book, Modern C++ for Absolute Beginners: A Friendly Introduction to C++ Programming Language and C++11 to C++20 Standards[^]

It is very clearly written, covers the topic and walks the new developer through the code and explains tips, traps and standard use.

It is a fun book to read and I really enjoyed it even as an experienced dev who hadn't used C++ recently (20 years).
 
Share this answer
 
There are a couple of routes:

1) The best is a course - because if you don't understand something, the tutor can rephrase or explain differently until you do.

2) The second best is a book - it provides all the information (and there is a lot) in a structured and ordered manner, starting with the basic stuff, and working up through data structures to GUIs, databases, communications, and so on. Start at the beginning and work through to the end, doing all the exercises.
Addison Wesley, Wrox, and Microsoft press all do good ones. Avoid anything with multiple exclamation marks, or "in nn days" in the title.

3) Grab a copy of a compiler or IDE (Visual Studio is probably the world's best and it has a free version) and guess what you need to do, try it and see if it works. This is generally spectacularly poor way to do it, as it means that you don't know what is there that might make your life a whole load easier. But it has one big advantage: it's better than option 4.

4) Dive into YouTube and start watching "C++ training" videos. YOu will learn nothing, because the vast majority of them are created by people who don't know how to teach, don't know how to make a video, and in most cases don't know how to code either. Remember that YouTube is about monetization: "likes" and "Subscribes" are what the videos are there for. There may be good ones in there but they are buried under a mountain of dross.

When you have got into it, practice, practice, and practice again - it's the only route to competance!
This may help as well: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900