Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
addMember.c
Package: work.rar [view]
Upload User: bafish
Upload Date: 2021-11-22
Package Size: 158k
Code Size: 1k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- #include "com.h"
- /*********************************************************
- *函数名:addMember
- *形参:要处理的链表头指针head
- *返回值:无
- *函数功能:添加若干个队员结点,然后保存结果到文件
- *作者:qjh
- *编写日期:2008-9-18
- **********************************************************/
- void addMember(MEMBER *head)
- {
- MEMBER *newNod;//新增加的结点的指针
- char flag; //用来标识是否要继续添加人员
- while ( 1 )
- {
- printf("要添加一个新队员信息吗?(y/n)");
- flag = getche( );//接收用户输入
- printf("n");
- if ( 'y' == flag || 'Y' == flag )
- {
- //MEMBER * newNode(MEMBER *head);
- newNod = newNode( head ); //生成一个新结点,并输入信息
- head = insert( head, newNod, 0); //按编号升序插入一个新结点
- }
- else
- {
- break; //退出循环
- }
- }
- writeToFile( head );
- list( head );
- }