lena=strlen(la);
lenb=strlen(lb);
lc=(char *)malloc((lena+lenb)*sizeof(char)+1); ????????????????????????????
if(!L->elem) exit(OVERFLOW);
无法识别error C2065: 'strlen' : undeclared identifier
e:\数据结构\list1\liner.h(56) : error C2065: 'malloc' : undeclared identifier
e:\数据结构\list1\liner.h(72) : error C2065: 'exit' : undeclared identifier我是在用win32 console a simply complication做数据结构
但我有的数据结够的程序是c语言中的
我看malloc无法识别
所以加了#include"alloc.h"
但错误说:can't open alloc.h
还有c++中有没有strlen函数吗
lenb=strlen(lb);
lc=(char *)malloc((lena+lenb)*sizeof(char)+1); ????????????????????????????
if(!L->elem) exit(OVERFLOW);
无法识别error C2065: 'strlen' : undeclared identifier
e:\数据结构\list1\liner.h(56) : error C2065: 'malloc' : undeclared identifier
e:\数据结构\list1\liner.h(72) : error C2065: 'exit' : undeclared identifier我是在用win32 console a simply complication做数据结构
但我有的数据结够的程序是c语言中的
我看malloc无法识别
所以加了#include"alloc.h"
但错误说:can't open alloc.h
还有c++中有没有strlen函数吗
2.你看看是不是包含了正確的頭文件 string.h或者stdlib.h
另外,C++中同样也必须包含这sting.h头文件才能用strlen函数.