随笔分类 - 基础知识
摘要:函数名前的 ‘&’ 可以让你用 &函数名() 的方式获取返回值的地址 传参时候,参数para1 前面加&,在函数内改变para1 的值,函数外的para1 也会变,否则不变
阅读全文
摘要:1、std::string 转 int string valStr = "IconVisible"; int valInt = atoi(valStr.c_str()); 2、std::string 转 char* string valStr = "IconVisible"; const char*
阅读全文
摘要:mysqldump 导出数据库表数据到sql文件中 mysqldump -hlocalhost -uroot -p table1 table2>E:/backup/wcs_xxx.sql 假设当前时间为20220318092532 Linux xxx=`date '+%Y%m%d%H%M%S'`等于
阅读全文
摘要:一 在请求Http服务器, 步骤request.GetResponse() as HttpWebResponse的时候报错 System.Net.WebException:“服务器提交了协议冲突. Section=ResponseStatusLine” 解决方法: 在App.config文件中添加:
阅读全文
摘要:错误提示: npm ERR! code ENOLOCAL Could not install from "Files\nodejs\node_cache\_npx\29476" as it does not contain a package.json file. 原因: node路径带有空格 打开
阅读全文
摘要:C:\Users\admin>cd /d D:\SVNs D:\SVNs>
阅读全文
摘要:原数组: int[] a = new int[5] { 1, 3, 5, 4, 2 }; 取前三位: int[] b = new int[3]; //新数组 Array.ConstrainedCopy(a, 1, b, 0, 3); // 1:a数组从第1位开始截取;0:b数组从0位开始插入;3:a
阅读全文
摘要:参考文档:https://blog.csdn.net/xinjitmzy/article/details/100516336 导出方法: 代码: private void skinButton2_Click(object sender, EventArgs e){ try { sc.isAll =
阅读全文
摘要:遇到的问题:vs2019发布旧的IIS程序的时候报错: 命令“ npm run build”以代码1退出 Cannot find module './modifications/inherits 解决方法:将最新程序中的ClientApp文件夹替换旧程序解决的 猜测是旧程序中的某些模块插件不可用导致
阅读全文
摘要:MD5加密方法: public static string calculateDigest(string content, string secretkey) { string toSignContent = content + secretkey; MD5 md5 = MD5.Create();
阅读全文
摘要:1:默认CTRL+SPACE是自动补全的快捷键; 2:自主设置:QT Creater->Tools(工具)->Options(选项)->environment(环境)->Keyboard(键盘),发现TextEditor.CompleteThis命令 3:清除原来的快捷键,点击Record,按下对应
阅读全文
摘要:接收到的16进制信息:data.MainData = 01-21-0f-07-07-03-00-08-09-01-07-07-07-06-03-05-06-08-00-00-00-00-00-00-00-00-00-01-00-00-00-00-01-7a-09-0a-0b-0c-64-00-95
阅读全文
摘要:List<int> listA = new List<int> {1,2,3,5,7,9}; List<int> listB = new List<int> {13,4,17,29,2}; List<int> Result = listA.Union(listB).ToList<int>(); //
阅读全文
摘要:1:服务器连上外网,可以远程,不能访问 baidu.com,ping不通 baidu.com 解:DNS设置,主DNS设置为 114.114.114.114,备DNS设置为 8.8.8.8
阅读全文
摘要:Demo: public void DataGirdViewCellPaste() { try { // 获取剪切板的内容,并按行分割 string pasteText = ""; pasteText = Clipboard.GetText(); if (string.IsNullOrEmpty(p
阅读全文
摘要:SELECT ID,BillCode from downpackage_1 where BillCode in(select BillCode from downpackage_1 group by BillCode having(count(BillCode)>1)) ORDER BY ID ;
阅读全文
摘要:问题描述: C#代码中定义运用了 timer 定时器,是挂在IIS服务上的,定时器运行20分钟后自动结束了 问题原因: IIS-应用程序池-高级设置-进程模型-闲置超时(分钟):20 因为IIS的垃圾回收机制,会对 timer 进行计时回收,所以超过20分钟后,就被IIS自动回收了 解决方法: 1:
阅读全文
摘要:Windows上面文件拖拽没反应,拖不动的情况: 治疗方法:按两下Esc。
阅读全文
摘要:在路径上加上双引号就可以 例如:mongod --dbpath "C:\Program Files\MongoDB\Server\4.2\data" --logpath "C:\Program Files\MongoDB\Server\4.2\log\MongoDB.log" --logappend
阅读全文
摘要:修改tab键空格数 1:打开段落: 2:点击制表位 3:修改默认制表位 参考链接:https://www.kafan.cn/A/7v5o4jwp3g.html 缩进标尺: 1:点击视图,勾选标尺,移动标尺,对应缩进距离会同时变更 参考链接:https://zhidao.baidu.com/quest
阅读全文

浙公网安备 33010602011771号