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

Автор shubhamkumar68, история, 4 года назад, По-английски

Should i study object oriented programming and is it used in CP ? Where ? Also, what are its uses ?

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

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

OOP isn't used that much in CP, so you can get away with only knowing the very basics. However, if you want to do real-world programming then OOP is pretty important.

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

You can use a strict to store data such as nodes in a graph or edges or any other objects. This is better than using pair or tuple because you get to name the variables.