- 注册时间
- 2004-10-13
- 最后登录
- 1970-1-1
|
- #include<stdio.h>
- #include<stdlib.h>
- #include<alloc.h>
- #define MALLOC(num,type) (type*)alloc((num)*sizeof(type))
- void main()
- {
- int *new_memory;
- new_memory = MALLOC(1,int);
- *new_memory = 1;
- printf("%d\n",*new_memory);
- }
复制代码 书上说有这个头函数的,为什么这现在使用时却报错
fatal error C1083: Cannot open include file: 'alloc.h': No such file or directory
大概就是说没这个头函数吧. 为什么会这样呢? |
|