易截截图软件、单文件、免安装、纯绿色、仅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("通讯地址: ");
&


相关问答:

c/s 和b/s的区别是什么,一直搞不清

c/s 和b/s 的区别是什么,c/s需要服务器吗,怎么判断程序是c/s 还是b/s
C/S是服务器和客户端    B/S是服务器和浏览器

他们都有s,什么是s?就是server
那他们的区别是什么?一个是c,即client,一个 ......

一个简单计算器c代码

大家帮我看看这个代码,有很多问题,不知道怎么改,小弟在此谢谢了。
#include <stdio.h>
#include <conio.h>
#include <ctype.h>

float date1,date2;
char op;

void ......

帮忙把下面个c函数转成c#的

const int num=100
float neiji(float [num]b, float [num]c)
        {
            int p;
            float nj ......

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

C/C++  2009-9专家榜
名次  专家名称  专家分  个人描述 
1  mstlq (面色铁路桥)  5843  因为菜,所以努力学习中 
2  whg01 (及时结贴是美德)&n ......

C中内存的分配

比如:
char c[] = "hello,world";
char *c = "hello,world";

在分配内存时是不一样的吧?(分配到堆还是栈什么的)
谁能给讲讲C中内存是怎么分配的啊?
或者给提供个链接 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号