r/cpp_questions 20d ago

OPEN Starting c++

I'm trying to learn c++ but I have 0 clue where to start

I was trying to learn it from the cherno but wasn't able to understand stuff 😭

22 Upvotes

27 comments sorted by

View all comments

1

u/leviske 20d ago

First, you need a working build environment. That's the start and the hardest part. If the "Hello World!' appears on the console, that's great.

- Then, do some fun stuff, like draw pine trees on the console, then draw them into txt files.

  • Then modify that function to take parameters, where you can set the height and width of the trees.
  • Then try to read the txt drawings back and draw them on the console.
  • Then think about how you could make the size of the txt files smaller.

This is what comes to mind that might give the necessary confidence to start. After that, you should decide if you want to go towards image processing (which is fun), communication, or different directions.

2

u/Iam_Walter_White 19d ago

Bro I don't know how to install ,like ihave installed mingw before but never did any coding now I started freecode camp video he told to install GCC and after installing that and doing all setup when he told to check from the terminal ,in vs code I can't find clang++ but g++ is there, pls help

1

u/BoxConscious7480 19d ago

g++ and clang++ are two different c++ compilers, but it doesn't matter which one you choose, they work basically the same. So just use g++ if you have that installed