戴氏切纸机怎么编程

如题所述

->你可以把它理解为指向
#include<iostream.h>
void main()
{
struct node
{
int x;
int y;
} ;
node A;
node *p;
p=&A;
p->x=6;
cout<<A.x<<endl;
}

6

通过指针P指向结构变量A,用P->X对A.x进行赋植操作。
Elem type可能是定义的数据结构
温馨提示:答案为网友推荐,仅供参考
相似回答