#include <iostream>
using namespace std;

struct Node
{
    int m;
    void fun()
    {
        cout << "Hello Struct" << endl;
    }
};

int main(void)
{
    Node a;
    a.fun();

    system("pause");
    return 0;
}

 C++ 结构体是一种特殊的类

相关文章:

  • 2021-08-20
  • 2022-02-20
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2021-11-17
  • 2021-07-24
相关资源
相似解决方案