- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 C#自定义控件及添加事件
这里加的是两个label,两个textbox,一个按钮。2、选择浏览,找到自己生成的dll文件。3、 将控件拖到界面上,并添加代码。3、为自定义控件添加代码。1、在工具栏中右键选择项。2、在界面上添加控件。
2023-03-21 20:42:27
2118
转载 C# Hashtable、HashSet和Dictionary的区别
1.Hashtable 哈希表(HashTable)表示键/值对的集合。在.NET Framework中,Hashtable是System.Collections命名空间提供的一个容器,用于处理和表现类似key-value的键值对,其中key通常可用来快速查找,同时key是区分大小写;value用于存储对应于key的值。Hashtable中key-value键值对均为object类型,所以Hashtable可以支持任何类型的keyvalue键值对,任何非 null 对象都可以用作键或值。2.Hash
2022-05-18 21:13:09
1573
原创 服务器提交了协议冲突.Section=ResponseHeader Detail=CR 后面必须是LF
使用HttpWebRequest时,遇到“服务器提交了协议冲突.Section=ResponseHeader Detail=CR 后面必须是LF”网上找了很多方法,基本都是在appConfig文件中设置 <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing="true"/> </settings> </system.net>相
2021-05-27 14:00:33
1197
原创 函数中,ORA-00942: TABLE OR VIEW DOES NOT EXIST
在函数中查询另一个用户的表或视图报ORA-00942: TABLE OR VIEW DOES NOT EXIST单独使用select 语句可正常访问这是由于当权限赋予给某个角色以后,然后将这个角色赋予其他用户,一般情况下用户是能享有角色所有的权限的。然而当这个用户写的PL/SQL当中需要角色中的某些权限时,这些权限就变成不可用了,只能通过单独给这个用户重新赋权grant select ...
2019-10-21 11:12:51
785
原创 C#读写txt文件内容
//读取1:StreamReader sR = File.OpenText(@"C:\temp\a.txt"); string nextLine; while ((nextLine = sR.ReadLine()) != null) { Console.WriteLine(nextLine); } sR.Close(); //读取2:FileStream file...
2019-10-11 17:32:23
208
原创 .NET连接、操作oracle数据库
.net连接oracle有三种方式,我采用的是使用微软自带的system.data.oracleclient电脑上装了oracle11g client(x64)、和pl/sql,在安装的过程中也遇到了许多问题:1、oracle安装,环境不满足最低要求百度然后修改了两个.ora文件就好了,加上了win8的坏境2、oracle安装,path过长无法自动配置环境变量于是在pa...
2018-12-14 15:00:30
1731
原创 7-5 堆中的路径(25 分)
将一系列给定数字插入一个初始为空的小顶堆H[]。随后对任意给定的下标i,打印从H[i]到根结点的路径。输入格式:每组测试第1行包含2个正整数N和M(≤1000),分别是插入元素的个数、以及需要打印的路径条数。下一行给出区间[-10000, 10000]内的N个要被插入一个初始为空的小顶堆的整数。最后一行给出M个下标。输出格式:对输入中给出的每个下标i,在一行中输出从H[i]到根结点的路径上的数据。...
2018-04-08 14:28:51
1281
原创 1030. Travel Plan (30)/DFS+vector打印路径
1030. Travel Plan (30)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueA traveler's map gives the distances between cities along the highways, together with the cost o...
2018-03-14 16:41:49
154
原创 1003. Emergency (25)/最短路(dfs)
1003. Emergency (25)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueAs an emergency rescue team leader of a city, you are given a special map of your country. The ma...
2018-03-12 16:10:34
205
原创 1135. Is It A Red-Black Tree (30)/红黑树 搜索建树
1135. Is It A Red-Black Tree (30)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueThere is a kind of balanced binary search tree named red-black tree in the data s...
2018-03-12 14:08:41
207
原创 1137. Final Grading (25)/map+vector
1137. Final Grading (25)For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no l...
2018-03-08 09:14:03
181
原创 1138. Postorder Traversal (25)/前序和中序重建二叉树
1138. Postorder Traversal (25)时间限制 600 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers. Given the pre...
2018-03-07 19:34:05
192
原创 1017. Queueing at Bank (25)
Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have to wait in line behind the yellow ...
2018-02-20 13:36:31
134
原创 1012. The Best Rank (25)
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algebra), and E - E...
2018-02-10 21:27:55
128
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人