Блог пользователя Vedkribhu

Автор Vedkribhu, история, 5 лет назад, По-английски

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.

  • Проголосовать: нравится
  • +7
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

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 лет назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

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.