In C++ I Cannot Grasp Pointers and Classes

后端 未结 27 1726
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 02:25

I\'m fresh out of college and have been working in C++ for some time now. I understand all the basics of C++ and use them, but I\'m having a hard time grasping more advance

27条回答
  •  [愿得一人]
    2020-12-03 02:42

    To better understand pointers, I think, it may be useful to look at how the assembly language works with pointers. The concept of pointers is really one of the fundamental parts of the assembly language and x86 processor instruction architecture. Maybe it'll kind of let you fell like pointers are a natural part of a program.

    As to classes, aside from the OO paradigm I think it may be interesting to look at classes from a low-level binary perspective. They aren't that complex in this respect on the basic level.

    You may read Inside the C++ Object Model if you want to get a better understanding of what is underneath C++ object model.

提交回复
热议问题