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

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

Hello everyone ... recently I learned C++ language and joined to competitive programming World , I Just want to know if OOP ( Object-Oriented programming ) is important for me !? , such as " Struct " && " Class " .. Thanks in advance =D

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

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

OOP is not really important for competitive programming. In most of my solutions I don't even define methods (except for main of course).

OOP is more useful in huge projects. It improves readability and usability. So you should definitely learn OOP, but it is not necessary for competitive programming sites like Codeforces.

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

OOP is not important at all in competitive programming.

Sometimes (like in Topcoder) you have to code the solution inside a class/struct, but otherwise you don't need OOP.

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

No. You might need to define your own custom structs on rare occasions but even that can be avoided.