![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
萌猛萌新
这个作者很懒,什么都没留下…
展开
-
修改txt默认编码为Ansi
方法来自百度,担心链接失效自己做一个备份注意:放入c盘的txt会成为默认的txt文本,新建一个就会变成它转载 2020-04-25 11:13:06 · 16566 阅读 · 1 评论 -
easyx 图形界面输入中文
***********百度贴吧抄的代码,用了部分c和c++,输入的数据保存在string类型中#include <graphics.h>#include <conio.h>#include <windows.h>#include <string>#pragma comment(lib,"Imm32.lib")using namespac...原创 2020-04-12 07:58:07 · 9482 阅读 · 8 评论 -
memset用法
memset()函数原型是extern void *memset(void *buffer, int c, int count)1.buffer是指针2.c是替换后的字符3.count 是替换的长度作用:memset(str,’\0’,strlen(str)); 把str中所有字符替换为’\0’,达到清空数组的作用...原创 2020-04-19 23:03:35 · 322 阅读 · 0 评论 -
c++ 获取汉字首字母
转载自百度原文链接 https://www.cnblogs.com/tangxin-blog/p/5540622.html#include <stdint.h>#include <stdio.h>#include <ctype.h>#include <string.h>bool between(uint32_t start,uint32...转载 2020-04-22 20:11:49 · 1700 阅读 · 0 评论