当前位置:首页 > 科学课件 > 正文内容

c++结构体

zhao_admin1年前 (2022-05-22)科学课件33

不是的。看完下边的代码你应该就更明白了


#include
#include
using namespace std;


struct Point
{
  float x;
  float y;
};


void main()
{
  Point a;
  Point b;
  a.x=20;
  a.y=20;
  b.x=30;
  b.y=30;
}

扫描二维码推送至手机访问。

版权声明:本文由PPT写作技巧发布,如需转载请注明出处。

本文链接:http://www.ppt3000.com/post/62783.html

分享给朋友:

相关文章