
c 语言
文章平均质量分 81
小小的CODER
辛劳的小码农!欢迎讨论
展开
-
链表读写文件
本人在做学生管理系统保存文件时遇到的,开始不会,但在查找了很长时间后,及自己在结合自己代码做了一些修改,终于算是读写成功了,哈哈//链表保存到文件students *listtofile_stu(students *phead){ FILE *fp; students *tmp; if((fp=fopen("student","wb"))==NU原创 2014-11-27 18:21:49 · 4658 阅读 · 2 评论 -
循环链表创建
List Creatlist(int n) 11.{ 12. List head,p; 13. int i; 14. head=(Node*)malloc(sizeof(Node)); 15. if(!head) 16. { 17. cout<<"memory allocation error!\n"; 18.转载 2015-01-06 18:08:38 · 577 阅读 · 0 评论 -
将整型数据转换为string类型
将整型数据转换为string类型 在进行代码数据处理的时候,遇到数据类型转换的问题。因为string类型重载了+等操作符,处理数据起来比较方便,但是有些时候需要将其他类型的数据加到string类型中,这就出现了其他类型转换为string类型的问题。 要实现Int 等类型转换为string类型,首先要用系统函数ltoa 、itoa等转换为char* ,然后在转换为原创 2015-12-02 16:33:15 · 3681 阅读 · 0 评论 -
学生管理系统源代码
/* * xjgl.h * * Created on: 2014-12-5 * Author: yao */#include#include#include#include//#include"stu.c"//#include"tea.c"//学生结构体typedef struct student{ int id;原创 2014-12-06 16:13:58 · 5388 阅读 · 0 评论