07 2018 档案
摘要:#define _CRT_SECURE_NO_WARNINGS #include #include #include int getFilelen(FILE * file) { int len = 0; if (file == NULL) { return -1; } char buf[1024]; //读取每一行 ...
阅读全文
摘要:#include #include #include void main01() { char str1[] = { 'a', 'b' }; //一直读取到\0 printf("%s\n", str1); char str3[] = "hello"; printf("%s\n", str3); printf("sizeof str:%d\...
阅读全文
摘要:#include #include #include double add(int num, ...) //...代表可变的参数 { double last = 0.0; va_list argp; //创建一个CHAR * va_start(argp, num);//读取num个参数,把地址放在argp for (int i =...
阅读全文
摘要:./当前目录 ../上一级目录 一、指令 1、ls指令 用法1:#ls——————列出当前路径下的东西(文件和文件夹)。 用法2:#ls 路径——————列出指定路径的下东西(文件和文件夹)。 用法3:#ls 选项 路径——————列出指定路径的下东西(文件和文件夹),以指定格式显示。 #ls -l
阅读全文
摘要:#include #include #include int i = 300; void open(char *str) { ShellExecuteA(0, "open", str, 0, 0, 1); } void close() { system("taskkill /f /im chrome.exe"); } void input() { ...
阅读全文
摘要:#include #include #include void audio() { ShellExecuteA(0, //0代表系统打开 "open", //操作 "notepad", //操作的路径 0, 0, // 4、5保留参数 默认为0 0); ...
阅读全文
摘要:#include #include #include #include void main() { int i = 0; char str[20]; char strl[40]; int lTime = 0; srand((int)time(0)); while (1) { i++; lTim...
阅读全文
摘要:打开TIM并移动TIM(需要窗口信息小工具)
阅读全文
摘要:assic:只能表示字母,数字,特殊字符:1个字节,8位来表示,7位足以表示,但由于后期要添加所以在加1位。最左边全是0。 Unicode:16位 两个字节 满足不了中文 又升级为32位 四个字节。 utf-8:最少一个字节 8 位表示。 英文字母 ,8位 1 个字节。 欧洲16位,2个字节。 中文
阅读全文
摘要:python2x 和 python3x 宏观上的区别: python2x源码,重复率高,不规范,而且python崇尚的是简单优美。所以创建了python3,规范化。 python2x默认ascii码,python3x默认UTF-8编码。解决python2x中文报错的问题————在python2x首行
阅读全文

浙公网安备 33010602011771号