代码之家  ›  专栏  ›  技术社区  ›  c00000fd

如何在VS2017中添加带有“快速操作和重构”的静态函数声明?

  •  0
  • c00000fd  · 技术社区  · 7 年前

    我真的很喜欢VS2017的这个新功能,除了一点细微差别。让我解释一下:

    • .cpp 文件,例如:

      int CTestMfc2017Dlg::MyStaticFunction(int input)
      {
      }
      
    • Quick actions and refactorings 然后选择 Create declaration/definition :

      enter image description here

    • VS 2017将其声明添加到类中,作为其在 .h 文件。

    但是,是否可以使用此功能添加 static 函数到类?

    0 回复  |  直到 7 年前