c++结构体
不是的。看完下边的代码你应该就更明白了
#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;
}
不是的。看完下边的代码你应该就更明白了
#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;
}