示例代码:

#include <iostream>
using namespace std;

struct Node {
    int x, y, z;
    Node(int _x, int _y, int _z) : x(_x), y(_y), z(_z) {}
};

int main() {
    Node a(1, 2, 3);
    cout << a.x << " , " << a.y << " , " << a.z << endl;
    return 0;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案