05 2024 档案

摘要:原文链接:https://blog.csdn.net/weixin_44504146/article/details/132831101 1. 第一步:避免踩坑,超级重要!!!关闭Visual Studio 2022应用程序;(不然插件装不上,一直转圈!) 2.第二步:下载Visual Studio 阅读全文
posted @ 2024-05-31 17:55 yinghualeihenmei 阅读(350) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://zhuanlan.zhihu.com/p/472099786 https://blog.csdn.net/qq_38390060/article/details/129580789 一、Windows安装Visual Studio 2022 1.1 下载地址 首先登陆Vis 阅读全文
posted @ 2024-05-31 17:40 yinghualeihenmei 阅读(291) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://tieba.baidu.com/p/8678521627 VS2022和VS2022 Preview的主要区别在于功能和稳定性。VS2022是微软官方出品的最新版本的开发工具包系列产品,是一个完整的开发工具集,包含了整个软件生命周期中所需要的大部分工具,如UML工具、代码管 阅读全文
posted @ 2024-05-31 13:59 yinghualeihenmei 阅读(612) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://jingyan.baidu.com/article/b907e62779e68346e7891ccf.html Visual Studio是微软开发的一款集成开发工具。它能够支持现在IT行业上主流的编程语言。非常的专业性,深受现在程序猿的喜爱。但是Visual Studio 阅读全文
posted @ 2024-05-31 13:57 yinghualeihenmei 阅读(1639) 评论(0) 推荐(0) 编辑
摘要:我这边装了vs2015与vs2019。听说19是完全兼容15的,并且提示更友好。我这边卸载了vs2015,记录下。 卸载前需要把所有的vs全都关掉,包括vs2019。不然不显示卸载的按钮。 我是在控制面板直接卸载的,关掉所有vs后,右击更改,等待一会会有卸载的按钮,直接点击。 等待了40几分钟后去吃 阅读全文
posted @ 2024-05-31 13:16 yinghualeihenmei 阅读(6) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/Gao068465/article/details/130841791 windows系统大家都不陌生,是大家用的最多的操作系统。在实际的使用中,遇到需要扩容C盘的情况不是很多,但是如果遇到了,有以下几个事项需要大家注意: 剩余空间是否充足不论当 阅读全文
posted @ 2024-05-30 18:03 yinghualeihenmei 阅读(19) 评论(0) 推荐(0) 编辑
摘要:dt = dt==null ? new DataTable(): dt 阅读全文
posted @ 2024-05-30 10:42 yinghualeihenmei 阅读(1) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/mjy520123/article/details/120297177 UCOS—II一、实时操作系统的概念1.1 操作系统​ 操作系统是一种系统软件,他在计算机硬件与计算机应用程序之间,通过提供程序接口,屏蔽了计算机硬件工作的一些细节,从提高了 阅读全文
posted @ 2024-05-29 19:12 yinghualeihenmei 阅读(69) 评论(0) 推荐(0) 编辑
摘要:webservice 可以直接配置url TransService.DataTrans client = new SGTSC.Web.TransService.DataTrans(); client.Url = "http://..DataTrans.asmx"; 阅读全文
posted @ 2024-05-29 09:23 yinghualeihenmei 阅读(20) 评论(0) 推荐(0) 编辑
摘要:用DBNull.Value 如:dt.Rows[0]["name"] =DBNull.Value; 阅读全文
posted @ 2024-05-23 17:24 yinghualeihenmei 阅读(13) 评论(0) 推荐(0) 编辑
摘要:new 了一个新的datatable。 将原来的数据copy到新的datatable后,原数据消失了,得到新的数据。 应该是因为用的是更新,更新的原数据,用 dtnew.Rows.Add(dt_old.Rows[0].ItemArray);就好了 阅读全文
posted @ 2024-05-23 17:11 yinghualeihenmei 阅读(38) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/weixin_44231544/article/details/123230147 问题: 原因:生成项目框架版本可能低于引用项目框架版本。 解决办法:改变生成项目框架版本,右键项目=》属性=》应用程序=》目标框架 阅读全文
posted @ 2024-05-23 09:27 yinghualeihenmei 阅读(42) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/m0_65636467/article/details/127770112 C#取随机数(Random篇) 一、整数随机数 //10以内的随机整数 Random rd= new Random(); int n = ran.Next(10); // 阅读全文
posted @ 2024-05-22 14:30 yinghualeihenmei 阅读(131) 评论(0) 推荐(0) 编辑
摘要:一会能用一会不能用的问题可太气人了。 能用说明没问题,不能用又捕捉不到问题。 一般客户端都是权限问题,测试的时候,将文件移动到安装路径时爆出问题,才发现是磁盘满了。 阅读全文
posted @ 2024-05-21 18:10 yinghualeihenmei 阅读(5) 评论(0) 推荐(0) 编辑
摘要:第一次遇见这个问题,记录下 我这边配权限遇到的,一会可以配一会不可以。最后发现是这个盘满了,不知道是不是这个原因。 原文链接:https://blog.csdn.net/wys0127/article/details/129175539 https://mbd.baidu.com/newspage/ 阅读全文
posted @ 2024-05-21 18:06 yinghualeihenmei 阅读(551) 评论(0) 推荐(0) 编辑
摘要:最近遇到一个问题,数据库一直查不出来数据,搞了半天发现传参的时候加了引号,不仔细看不出来,记录下。 正确的 :?com=id"; 错误的 :?com=’id’"; 之前遇到过传参有空格也不行的。真的是要仔细再仔细。 阅读全文
posted @ 2024-05-21 14:48 yinghualeihenmei 阅读(4) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/dofun333/article/details/73756923 遇到个问题,就是往数据库插入“©”的时候,会变成“?” 经研究,这个属于数据库字段类型的问题 这个字段我设置的类型是“varchar(100)”,这种类型的字段会将字段固定为指定 阅读全文
posted @ 2024-05-21 14:15 yinghualeihenmei 阅读(14) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://www.cnblogs.com/net5x/p/12430808.html https://blog.csdn.net/weixin_30815427/article/details/97283177 错误产生的原因: 出现使用SQL语句插入数据出现乱码或问号是由于数据库属 阅读全文
posted @ 2024-05-20 18:03 yinghualeihenmei 阅读(105) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://www.cnblogs.com/JimZhang/archive/2006/04/03/365573.html SQL SERVER的排序规则平时使用不是很多,也许不少初学者还比较陌生,但有一个错误大家应是经常碰到: SQL SERVER数据库,在跨库多表连接查询时,若两数 阅读全文
posted @ 2024-05-20 17:45 yinghualeihenmei 阅读(69) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/changyuanchn/article/details/51476281 引言据说有人归纳了计算机的五大常用算法,它们是贪婪算法,动态规划算法,分治算法,回溯算法以及分支限界算法。虽然不知道为何要将这五个算法归为最常用的算法,但是毫无疑问,这五 阅读全文
posted @ 2024-05-14 16:54 yinghualeihenmei 阅读(45) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/u013309870/article/details/75193592 http://t.csdnimg.cn/GgRFt 动态规划算法的核心 理解一个算法就要理解一个算法的核心,动态规划算法的核心是下面的一个小故事。 A * "1+1+1+1+ 阅读全文
posted @ 2024-05-14 13:36 yinghualeihenmei 阅读(12) 评论(0) 推荐(0) 编辑
摘要:public void Rotate(int[] nums, int k) { int n=nums.Length; int[] newNums=new int[n]; for(int i=0;i<n;i++) { newNums[(i + k) % n] = nums[i]; } for (int 阅读全文
posted @ 2024-05-13 01:00 yinghualeihenmei 阅读(3) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/weixin_42521628/article/details/119123550 1、桌面上选中“计算机”,“右击”-“管理”,在“服务和应用程序”中找到“服务”; 2、在“服务”中找到Windows Modules Installer服务,“ 阅读全文
posted @ 2024-05-09 09:44 yinghualeihenmei 阅读(34) 评论(0) 推荐(0) 编辑
摘要:public int MajorityElement(int[] nums) { Dictionary<int, int> dic = new Dictionary<int ,int>(); foreach (int num in nums) { if(!dic.ContainsKey(num)) 阅读全文
posted @ 2024-05-08 23:08 yinghualeihenmei 阅读(5) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://learn.microsoft.com/zh-cn/dotnet/fundamentals/code-analysis/quality-rules/ca1864 Dictionary<TKey,TValue>.ContainsKey(TKey) 和 Dictionary<T 阅读全文
posted @ 2024-05-08 16:46 yinghualeihenmei 阅读(160) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://www.cnblogs.com/zhuqs/p/9233887.html navigator.userAgent.toLowerCase() 判断当前用户所使用的浏览器navigator是HTML的内置对象; userAgent是navigator的属性方法,可以返回客户机 阅读全文
posted @ 2024-05-07 22:10 yinghualeihenmei 阅读(540) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://www.cnblogs.com/zhouyunbaosujina/p/3303136.html System.DateTime的最小可能值:DateTime.MinValue.ToString()=0001-1-1 0:00:00 我们实际用的时候会指定一个默认值DateT 阅读全文
posted @ 2024-05-07 15:31 yinghualeihenmei 阅读(128) 评论(0) 推荐(0) 编辑
摘要:与正常的绑定是不一样的,需要用 Text='<%# Eval("zyddpj") %>' 阅读全文
posted @ 2024-05-07 10:21 yinghualeihenmei 阅读(4) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/weixin_39779530/article/details/118244250 目前看到有两种关闭方式,一种是关闭索引index,一种是通过名称title关闭。 需求: easyUI 关闭tab页 方法: $("#tt").tabs("clo 阅读全文
posted @ 2024-05-06 14:59 yinghualeihenmei 阅读(8) 评论(0) 推荐(0) 编辑
摘要:非严格递增排列 的数组 nums,意思是有序递增的,但是有相同的元素 我写的: public int RemoveDuplicates(int[] nums) { int length=nums.Length; int low=0; for(int i=0;i<length;i++) { int n 阅读全文
posted @ 2024-05-05 18:37 yinghualeihenmei 阅读(7) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/anxin_hw/article/details/128312846 一、错误使用场景 1、普通for循环遍历List删除指定元素,list.remove(index) 示例:将姓张的名字移除掉 List<String> nameList = new Ar 阅读全文
posted @ 2024-05-04 21:45 yinghualeihenmei 阅读(977) 评论(0) 推荐(0) 编辑
摘要:数组移除数据,需要循环覆盖的方法。 可以快慢双指针。循环一遍。 public int RemoveElement(int[] nums, int val) { int n=nums.Length; int low=0; for(int i=0;i<n;i++) { if(nums[i]!=val) 阅读全文
posted @ 2024-05-04 21:36 yinghualeihenmei 阅读(13) 评论(0) 推荐(0) 编辑
摘要:在C#中,可以使用内置的排序方法对数组进行排序。以下是一些常用的排序方法: 使用Array.Sort<T>方法对数组进行排序。这是一个通用方法,可以对任何类型的数组进行排序,只要类型实现了IComparable接口。 int[] array = new int[] { 3, 1, 4, 1, 5, 阅读全文
posted @ 2024-05-03 01:03 yinghualeihenmei 阅读(111) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://www.cnblogs.com/jk-2048/p/18030587 https://blog.csdn.net/xiongyanglai/article/details/136473932 1、所属命名空间 .NET 3.5在 System.Collections.Gen 阅读全文
posted @ 2024-05-02 23:57 yinghualeihenmei 阅读(725) 评论(0) 推荐(0) 编辑
摘要:我写的: public int VowelStrings(string[] words, int left, int right) { string s="aeiou"; int k=0; for(int i=left;i<=right;i++) { int x=0,y=0; string word 阅读全文
posted @ 2024-05-02 13:48 yinghualeihenmei 阅读(7) 评论(0) 推荐(0) 编辑
摘要:转置让我写成了对角线交换。。。 还是要记录下 对角线交换代码: public int[][] Transpose(int[][] matrix) { int temp=0; int m = matrix.Length, n = matrix[0].Length; for(int i=0;i<m;i+ 阅读全文
posted @ 2024-05-02 13:13 yinghualeihenmei 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Math.Max(ans, score) 阅读全文
posted @ 2024-05-01 19:04 yinghualeihenmei 阅读(22) 评论(0) 推荐(0) 编辑
摘要:string str = "Hello, World!"; char character = str[6]; // 取索引为6的字符,结果为'W' Console.WriteLine(character); // 输出: W string s = "011101";s[i] == '0';//i为字 阅读全文
posted @ 2024-05-01 19:02 yinghualeihenmei 阅读(58) 评论(0) 推荐(0) 编辑