Class names that start with C

前端 未结 12 1930
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 13:44

The MFC has all class names that start with C. For example, CFile and CGdiObject. Has anyone seen it used elsewhere? Is there an official naming convention guide from Mic

12条回答
  •  借酒劲吻你
    2020-12-20 14:18

    It's evil. Don't use Hungarian Notation for anything but abstracted things.

    For instance, btnSubmit is ok to describe a button named Submit(which would have an accompanying lblSubmit for the label next to the button)

    But things like CMyClass for Class and uiCount for unsigned integer named count does not help programmers and just leads to extra wasteful typing.

提交回复
热议问题