竟然struct file的竟然没有成员
来源:互联网 发布:get是什么意思网络用语 编辑:程序博客网 时间:2024/06/09 21:48
不知道为什么,编译器没有通过,说file没有这个结构
也许是编译器的原因吧,到网上有关这个结构体的资料也蛮少的。
不过这个结构体本身占用了32个字节。
#include<stdio.h>
#include<stdlib.h>
int displayfileinfo(FILE * fp)
{
/*
if(fp==NULL){printf("Cannot open file/n");exit(1);}
printf("The file in memorybuffer level is %d/n",&fp->level);
printf("The file status flags is %d/n",&fp->flags);
printf("The file discription is %c/n",&fp->fd);
printf("The file in memory buffer size is %d/n",&fp->bsize);
printf("The file in memory buffer address is %d/n",fp->buffer);
*/
/*
if(fp==NULL){printf("Cannot open file/n");exit(1);}
printf("The file in memorybuffer cleft is %d/n",fp->cleft);
printf("The file next char is %c/n",fp->nextc);
printf("The file discription is %d/n",fp->fd);
//printf("The file in memory buffer size is %d/n",&fp->bsize);
printf("The file in memory buffer address is %c/n",fp->buff);
*/
}
int main(void)
{
FILE *fp,fp1;
fp=fopen("test.txt","r+");
if(fp==NULL){printf("Cannot open file/n");exit(1);}
//displayfileinfo(fp);
printf("The file struct size is %d/n",sizeof(fp1));
while(1){};
}
- 竟然struct file的竟然没有成员
- Windows Vista 竟然没有 Netmeeting
- private成员函数竟然可以在类的外部调用
- soso竟然没有收录qq.com的任何一个网页
- ConcurrentLinkedHashMap 这货竟然没有链表的属性
- 发表的竟然不见了。。
- struct 定义函数体 竟然可以!
- c语言里面竟然没有bool类型
- 竟然没有在这里写过博客
- 竟然有这样的程序员
- CSDN竟然用康盛的UCHOME
- joomla!的controller竟然有两类
- 对于eclipse的新的technology project proposals的放出,国内竟然没有反映...
- short类型的+操作和++操作的区别,竟然没有一个正确答案.
- 独一无二的 153 ?竟然没有可与之比肩的第二个数了么?
- 独一无二的 153 ?竟然没有可与之比肩的第二个数了么
- opera页面的菜单中竟然没有查看属性相似的菜单?
- 悬而未决:竟然没有AIT RAGE 3D IIC显卡的XP驱动?
- awk命令简介
- Shell脚本调试技术
- 常量指针和指针常量
- Apache FileUpload文件上传组件API解析
- 我的学习笔记
- 竟然struct file的竟然没有成员
- Windows下使用Interlocked系列函数实现的一个轻量级读写锁
- 使用 Linux 文本工具简化数据的提取
- 文件描述符,文件流,文字指针
- 减肥一个月
- 单链表的创建
- 插入透明背景Flash的HTML代码
- linux下socket通信之通信模型
- FORM 怎么让它不能改变大小