我在这一步难倒同时实施三叉树:错误:指向不完全类类型是不允许
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
typedef struct tnode *Tptr;
typedef struct node
{
char splitchar;
Tptr lokid,eqkid,hikid;
}Tnode;
int research(Tptr p,char *s)
{
if (!p) return 0;
if (*s<p->
}
int main(){
return 0;
}
当我移动靠近p
鼠标图标,它显示了我一个红色和错误:
pointer to incomplete class type is not allowed
我的问题正是什么是不完整的类?请帮助我,谢谢。
你忘了定义'struct tnode'。另外,你确定你有一个C编译器吗? – 2012-03-11 19:21:04
我有visual c + 2010,据我所知,它支持c以及 – 2012-03-11 19:22:30
C +?如果你的意思是Visual C++,那不是一个真正的C编译器。你可能仍然能够解决某些问题,但我只是说,一个真正的C答案不会帮助你编译该程序。 – 2012-03-11 19:23:33