- 博客(8)
- 收藏
- 关注
原创 C语言之打印错误信息
来源:我的博客站 OceanicKang |《C语言之打印错误信息》标准输入 — stdin标准输出 — stdout标准错误输出 — stderr#include <stdio.h>#include <stdlib.h>#include &am
2018-09-14 19:47:48 7877
原创 C语言之随机读写文件
来源:我的博客站 OceanicKang |《C语言之随机读写文件》一、获取位置指示器ftell(FILE *stream)#include <stdio.h>#include <stdlib.h>int main(void){
2018-09-13 22:07:38 1701
原创 C语言之二进制读写文件
来源:我的博客站 OceanicKang |《C语言之二进制读写文件》一、二进制读写size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream) - 读size_t fwrite(void *ptr, size_t size, size_t nmemb, FILE *stream) - 写 参数 ...
2018-09-13 19:50:34 12378
原创 C语言之格式化读写文件
来源:我的博客站 OceanicKang |《C语言之格式化读写文件》一、函数fprintf(FILE *stream, const char *format, …) — 格式化写fscanf(FILE *stream, const char *format, …) — 格式化读【注】参数结构与printf(const char *format, …)类似二、例子...
2018-09-12 20:12:26 1487
原创 C语言之文件操作
一、打开文件1、函数fopen(path, type)2、参数介绍 参数 类型 说明 备注 path 字符串 文件路径 如”./hello.txt” type 字符串 读写类型 见下方【读写类型说明】 return 指针或EOF 返回值 指针为文件指针,EOF即为文件打开失败【读...
2018-09-11 22:53:03 142
原创 单链表之按值大小顺序插入整数组(C语言实现)
来源:我的博客站 OceanicKang |《单链表之尾插法(C语言实现)》1、初始化准备#include <stdio.h>#include <stdlib.h>// 数组结构体struct Node{ int
2018-09-06 00:02:46 2443 1
原创 realloc 实现随用户输入自动扩展数组长度(C语言)
来源:我的博客站 OceanicKang |《realloc 实现随用户输入自动扩展数组长度(C语言)》#include <stdio.h>#include <stdlib.h>int main(void){ int *preal = NULL; int num, count =
2018-09-02 00:05:13 846
原创 关于阿里虚拟主机CDN支持Typecho Https访问
踩了几天的坑,总算是开启了https第一步通过FTP登陆虚拟主机 我用的是FileZilla进入htdocs目录,就是你的站点目录1.打开config.inc.php加入如下代码/** 开启HTTPS */define('__TYPECHO_SECURE__',true);2.站点根目录添加.htaccess文件注意:.htaccess里不要设置...
2018-09-01 23:36:28 324
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人