上一页 1 ··· 122 123 124 125 126 127 128 129 130 ··· 133 下一页
摘要: #include <stdio.h>typedef struct student{float score1;float score2;float score3;float avr;}STUDENT;void save(STUDENT * student)//以二进制形式保存{ FILE *fp=NU 阅读全文
posted @ 2016-09-12 11:39 朱小勇 阅读(643) 评论(0) 推荐(0)
摘要: 1、删除文件 int remove(char *filename); 返回值:删除成功:0,失败:其他 2、重命名文件 int rename(const char *oldname,const char *newname); name都是文件名 返回值:删除成功:0,失败:其他 3、创建临时文件 F 阅读全文
posted @ 2016-09-11 15:15 朱小勇 阅读(233) 评论(0) 推荐(0)
摘要: 1、int fseek(FILE *fp,long offset,int fromwhere);改变位置指针函数 offset:以fromwhere为当前位置向前或向后移动的字节数,值为正:向后移动,值为负:向前移动。 fromwhere:(1)、SEEK_SET(0):文件开始位置 (2)、SEE 阅读全文
posted @ 2016-09-11 14:52 朱小勇 阅读(733) 评论(0) 推荐(0)
摘要: 含义:给已有的类型重新定义了一个方便使用的别名,并没有产生新的数据类型。 eg: 1、 typedef struct Node{ int a; char *b; }PNode; PNode a, b; 2、 typedef double DataType; DataType a; 阅读全文
posted @ 2016-09-11 10:55 朱小勇 阅读(147) 评论(0) 推荐(0)
摘要: int feof(FILE *fp); 返回值: 0:文件未读取结束 1:文件已读取结束 阅读全文
posted @ 2016-09-10 22:55 朱小勇 阅读(2561) 评论(0) 推荐(0)
摘要: 一、打开文件 FILE *fp=NULL;//初始化文件指针变量 fp=fopen("test.text","r");//test.text是文件名,r是模式 if(fp==NULL) {dosomething} getchar();//暂时 模式说明: r:只读方式,不能改变硬盘文件状态。如果文件 阅读全文
posted @ 2016-09-10 22:53 朱小勇 阅读(526) 评论(0) 推荐(0)
摘要: 1、新建记事本文件,后缀改为.html 2、添加: <html> <head> <title>jude`s first web</title> </hdad> <body> jude is the best man in the world </body></html> 3、用浏览器打开 阅读全文
posted @ 2016-09-06 14:20 朱小勇 阅读(262) 评论(0) 推荐(0)
摘要: HTML的文档结构: 1、<html> 2、<head>:放置HTML文件的信息,如定义CSS样式代码可放置在此标签中 3、<title>:放置网页的标题 4、<body>:是HTML页面的主题标记,页面中的所有内容都定义在此标签中;具有控制页面的一些特性如,控制页面的背景图片和颜色等 <b>:字体 阅读全文
posted @ 2016-09-06 14:18 朱小勇 阅读(212) 评论(0) 推荐(0)
摘要: 一、tomcat的开启 1、下载tomca 主要有两种使用方式,一种是使用exe安装包,另一种是使用免安装文件夹格式,我使用的第二种 2、把文件夹解压到某个盘里,新建两个环境变量 1、JAVA_HOME:C:\Program Files\Java\jdk1.8.0_101 2、CATALINA_HO 阅读全文
posted @ 2016-09-06 13:40 朱小勇 阅读(227) 评论(0) 推荐(0)
摘要: String test=“qwer”; if (test.contains("个we")){ do; } 阅读全文
posted @ 2016-08-27 10:26 朱小勇 阅读(2356) 评论(0) 推荐(0)
上一页 1 ··· 122 123 124 125 126 127 128 129 130 ··· 133 下一页