摘要: #include<stdio.h>#include<stdlib.h> int main(){ FILE *fin;//文件指针 char ch; if((fin=fopen("c:\\mmmmm\\test.txt","r"))==NULL) { printf("read file error!\ 阅读全文
posted @ 2022-05-12 11:44 CC9898 阅读(65) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<stdlib.h> int main(){ int i; char ch; FILE *fout; if((fout=fopen("c:\\mmmmm\\test.txt","w"))==NULL) { printf("没有找到该文件!\n"); 阅读全文
posted @ 2022-05-12 11:43 CC9898 阅读(113) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h> //写函数void writetext(FILE *fw){ char str[80]; gets(str); while(strcmp(str,"-1")!=0) { fputs(str,f 阅读全文
posted @ 2022-05-12 11:42 CC9898 阅读(111) 评论(0) 推荐(0)
摘要: //该程序完成'动态内存分配' #include<stdio.h>#include<stdlib.h> typedef struct node{ int data; struct node *next;}linklist; //主菜单 int menu(){ printf("\n********** 阅读全文
posted @ 2022-04-28 18:27 CC9898 阅读(106) 评论(0) 推荐(0)
摘要: //编写一个函数print,输出学生的信息,该数组有5个学生的记录,包括://num,sname,score[3],用主函数输入这些记录,用print函数输出这些记录。 #include<stdio.h>#define N 5 //预定义,N代表5个学生 struct student{ int nu 阅读全文
posted @ 2022-04-21 17:34 CC9898 阅读(351) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>分页-陈敏芳</title> <style type="text/css"> ul.pagination{ display: inline-block; padding: 0; mar 阅读全文
posted @ 2022-04-15 23:40 CC9898 阅读(92) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>图片浮动-陈敏芳</title> <style type="text/css"> img{ float: right; } .clearfix:after { content: "." 阅读全文
posted @ 2022-04-15 23:39 CC9898 阅读(108) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>固定定位-陈敏芳</title> <style type="text/css"> *{ margin: 0;/*外边距*/ padding: 0;/*内边距*/ } .wrap{ bo 阅读全文
posted @ 2022-04-15 23:38 CC9898 阅读(129) 评论(0) 推荐(0)
摘要: #include<stdio.h>#define N 5 struct student//数据类型 { int num;//学号 char sname[25];//姓名 char sex[4];//性别 int age;//年龄 }; struct student stu[N]={{1001,"钟丽 阅读全文
posted @ 2022-04-14 14:53 CC9898 阅读(1576) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>凤凰网</title> <style type="text/css"> * { font-family: SimSun, Arial; padding: 0; margin: 0; b 阅读全文
posted @ 2022-04-13 22:54 CC9898 阅读(227) 评论(0) 推荐(0)