数据结构

[复制链接]
406|0
 楼主| 过期账户 发表于 2019-10-30 16:16 | 显示全部楼层 |阅读模式
为什么在VC++编译器中用 结构体类型 定义变量,编译器会提示错误呢。大神解答??(标记红色那里错了)#include<stdio.h>
#include<malloc.h>
#include<stdlib.h>

typedef struct Node
{
        int data;
        struct Node * pNode;

}NODE, * PNODE;

struct Stack
{
        PNODE pTop;
        PNODE pBottom;

}STACK, *PSTACK;

int main(void)
{
<font color="#ff0000"><b>        STACK S;//STACK等价于struct Stack</b></font>
        
        return 0;
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

395

主题

395

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部