Vedkribhu's blog

By Vedkribhu, history, 5 years ago, In English

I wanted to switch to a fast language, and as c++ is the go to language for the competitive programming I shifted to c++. It is now around 15 days I have been trying to get familiar with c++. I feel a strange uneasiness while implementing problems in c++. I need to google a lot of syntax. And c++ comes with the lack of freedom which python used to provide. Is it a complete different mindset for coding in c++ and python, or is it a thing which will go away as I make progress in c++? Has anyone been in such a situation? What is a good way to learn syntax faster, right now I tend to see a lot user submissions to learn new tricks and tips. But if I try implementing heavy implementation problems by myself it generally takes 2-3 hours. Long debugging hours eat all my time for problem solving practice. Any suggestions will be nice.

  • Vote: I like it
  • +7
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +4 Vote: I do not like it

You are on the right track. The problems you are facing are normal, I also faced them when I migrated from python to c++. Just keep solving problems and google if you face any problem. Hopefully you will get used to it after some time.

»
5 years ago, # |
  Vote: I like it +7 Vote: I do not like it

Few months ago I was in same situation as you.When I tried to shift from python to C++,I was getting angry to declare data-types(because I was not caring to know them for python),brackets and semi-colons etc.But after few days of practice in C++,I hate to code in python specially for CP. So don't worry if you have problem syntax.In few days you will learn them.