| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 643 人关注过本帖
标题:C语言程序设计求助
只看楼主 加入收藏
tonymiao
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-8-24
结帖率:0
收藏
已结贴  问题点数:20 回复次数:8 
C语言程序设计求助
设计一个 学生档案管 理程序
完成的功能:
1)建立学生档案,输入各数据
2)对各数据的修改
对输入错误的记录修改,学生人数增加、减少的修改。
3)数据查询
按姓名查询某学生档案的各项数据
4)数据的统计
(1) 统计入学时的平均分
(2) 统计男、女学生的人数
(3) 统计某年以前出生人数
(4) 统计某地学生人数
(5) 统计党、团员学生人数
5)输出显示
(1) 示某一个学生的档案中各数据
(2) 示所有学生档案的各数据
数据: 编号、姓名、性别、年龄、住址、出生日期、入学总分。
搜索更多相关主题的帖子: C语言 程序设计 
2010-08-24 16:52
jack10141
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:陕西西安
等 级:小飞侠
威 望:6
帖 子:706
专家分:2271
注 册:2010-8-10
收藏
得分:2 
............

Coding就像一盒巧克力,你永远不会知道你会遇到什么BUG
别跟我说你是不能的,这让我愤怒,因为这侮辱了你的智慧
2010-08-24 17:05
tonymiao
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-8-24
收藏
得分:0 
???
2010-08-24 17:12
xiaomingong
Rank: 1
等 级:新手上路
帖 子:2
专家分:3
注 册:2010-8-22
收藏
得分:2 
没看明白呢哈
2010-08-24 20:40
pangding
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:北京
等 级:贵宾
威 望:94
帖 子:6784
专家分:16751
注 册:2008-12-20
收藏
得分:2 
这个必须无语……
2010-08-25 00:44
唐小虎
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:46
专家分:119
注 册:2010-6-25
收藏
得分:2 
现在就不如结贴吧!给分吧!
2010-08-25 01:50
myang
Rank: 4
等 级:业余侠客
威 望:1
帖 子:88
专家分:208
注 册:2009-8-28
收藏
得分:2 
以前没学数据库时写过一个,不过你说的那些信息全写在了*.dat文件中。很不实用。

QQ群:214453442
2010-08-25 02:38
Antwind
Rank: 2
等 级:论坛游民
帖 子:82
专家分:53
注 册:2010-7-11
收藏
得分:2 
#include<stdio.h>
typedef    struct students
{
     unsigned  number;
     char      name[20];
     char      sex[6];
     unsigned  age;
     char      address[50];
     struct
            {  unsigned  year;
               unsigned  month;
               unsigned  day;
            }birthday;
     int        score         ;
     struct students prior;
     struct students next;
}*record;
struct
{ int students=0;
  struct students *fnode=NULL;


}hand;
void main()
{
  getdell();
  putdell();
getch();

}
void  getdell()
{
  record last,now;
  now=get();
  if(!hand.fnode)
        {
             hand.fnode=now;
             hand.fnode.next=NULL;
             hand.fnode.prior=NULL;
             last=now;
        }

   last.next=now;
   now.next=NULL;
   now.prior=last;
   last=now;




}

void putdell()
{ record p;
 printf("the message");
  p=hand.fnode
 while(p)
    {   printf("the number:%d"p->number);
        printf("the name:%s",p->name);
        printf("sex:%s",p->sex);
        printf("age:%d",p->age);
        printf("address:%s",address);
        printf("the birthday:%d-%d-%d",p->birthday.year,p->birthday.month,p->birthday.day);
        printf("the score");
        p->next
     }

    }

}



struct students get()
{        record   p;
         char  str[50];
         p=(record)malloc(sizeof(struct students));
        if(p)
             { printf("NOT enough  memory");
               exit(1);
              }
         printf("please put the number");
         gets(str);
         p->number=atoi(str);
         printf("put the name");
         gets(p->name);
         printf("the sex");
         gets(p->sex);
         printf("put the address");
         gets(p->address);
         printf("put the birthday:first ,which year:");
         gets(str);
         p->birthday.year=atoi(str);
         printf("put the month");
         gets(str);
         p-birthday.month;
         printf("put the day");
         gets(str);
         p->birthday.day=atoi(str);
         printf("put the score");
         gets(str):
         p->score=atoi(str) ;
         return  (p);


}


大家看哈:还差点;麻烦你们补一下:


/*************我就是程序;程序就是我!******************/
2010-08-25 06:26
liuzhengshen
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:83
专家分:141
注 册:2010-4-23
收藏
得分:2 
呵呵
2010-08-25 08:36
快速回复:C语言程序设计求助
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015614 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved