易截截图软件、单文件、免安装、纯绿色、仅160KB

文件读写问题 c高手请进

下面是我的代码 从内存写入文件正确 但从文件读入内存都是乱码 而且程序崩溃 请c高手指点
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct inf
{
      char name[10];
      char address[20];
      long number;
      long telnumber;
      struct inf *next;
};
struct inf *input(struct inf *head)
{
      struct inf *p,*q;
      int i,population;
      if(head!=NULL)
      {
        p=q=head;
        while(p!=NULL)
        {
        q=p;
        p=p->next;
        }
      }
      printf("请输入要输入的人数!\n");
      scanf("%d",&population);
      for(i=0;i <population;i++)
      {
          p=(struct inf *)malloc(sizeof(struct inf));
          printf("姓名: ");
          scanf("%s",p->name);
          printf("通讯地址: ");
&


相关问答:

jsp中 <c:if test> 相关问题

在查询后将查询出来的值赋给各输入框
<c:if test="${not empty dataValue}">
      fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......

这个是什么意思,unsigned int c:2, d:1;

struct s1 {
char ch, *ptr;
union {
short a, b;
unsigned int c:2, d:1;
}
struct s1 *next;
};


主要看不懂符号 :

请达人指点一二
http://blog.cechina.cn/true ......

文件问题?C大侠请进

在C语言中如何打开一个已知的文件。如打开名为add.txt的文件假设它在C:\\Promgram Files\add.txt.要求打开时不改变其里面的内容。高手请解答下啊
fopen( "C:\\Promgram Files\add.txt" , "rb" ......

ue编辑c文件在unix下显示换行符问题

运行环境是unix,我用ue以ftp方式连到unix上,然后在ue中编写c程序,但在unix下用vi看程序时,每行后面都多了一个^M,这个应该是unix的换行符,每次只能删除一遍然后才能编译,否则会报错,请问这是在ue中字符编码的 ......

【★C/C++奖励基金-3期★】

C/C++  2009-9专家榜
名次  专家名称  专家分  个人描述 
1  mstlq (面色铁路桥)  5843  因为菜,所以努力学习中 
2  whg01 (及时结贴是美德)&n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号