![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
语言
文章平均质量分 84
Null_Value
不想做码农的攻城狮不是好程序媛。
展开
-
关于C++程序的编码问题
我们传统的程序基本都只在Windows或只在Linux下运行,Windows程序使用简体中文GB18030编码,Linux程序则只使用英文。近年来,随着程序的组件化,部分代码特别是公用组件都需要同时支持Windows及Linux平台,这样就出现了不同程度的编码问题,例如在编译时编译器报错,或者在运行时出现乱码。转载 2022-09-26 15:10:41 · 1047 阅读 · 0 评论 -
Golang简单写文件操作的四种方法
原文:https://studygolang.com/articles/2073 package main import ( "bufio" //缓存IO "fmt" "io" "io/ioutil" //io 工具包 "os" ) func check(e error) { if e != nil { panic(e) } } /** * 判断文件是否存在 存在返回 true 不存在返回false */ func checkFileIsExist(filename strin转载 2020-12-21 15:41:18 · 136 阅读 · 0 评论