#include <iostream>

using namespace std;

struct vertex{
int x;
int y;
int z;
// Input and Output
friend std::ostream& operator<<(std::ostream& os, const vertex& vo);

};
std::ostream&operator<<(std::ostream& os, const vertex& vo)
{
return os << "<" << vo.x << ", " << vo.y << ", " << vo.z << ">";
}

void main()
{
vertex v;
v.x = 0;
v.y = 1;
v.z = 2;
cout<<v;
return;
}

//输出<0, 1, 2>Press any key to continue

相关文章:

  • 2021-11-05
  • 2022-01-27
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
相关资源
相似解决方案