汇编网首页登录博客注册
dongliang的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
文章收藏
友情链接

[2009-02-18 21:04] C语言:学生信息系统源码(原创)

/*登入时要输入密码:在源文件目录下建立txt文件:内容dong ;文件名:Password ;注意后缀.txt去掉!!! */
   

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct student
{
        struct student *Next;
        char Name[10];
        long ID;      //学号
        int Class;
        char Sex;
        struct Date
        {
                int Year;
                int Month;
                int Day...
阅读全文 | 评论次数(1) | 浏览次数(768) | 所属类型(C 核心训练)

[2009-02-04 19:24] C语言第三章for疑问

专题中的例程摘抄如下:
for(p=startp; ;prevp=p,p=p->s.next)
{
        if (p->s.size>=nunits)
        {
           if(p->s.size<=nunits+E)
                {
                prevp->s.next=p->s.next;
                }
            else
                {
                    p->s.size-=nunits;
                p+=p->s.size;
                    p->s.size=nunits;
                }
            startp=prevp;
                /*每次开始遍历的起始地址从上次申请结点前一个结点开始*/
  ...
阅读全文 | 评论次数(4) | 浏览次数(937) | 所属类型(C 核心训练)
页码数(1):  1