摘要:C语言: 函数指针可以节省部分代码量,写类似具有多态的函数,比如要比较最大值,如果不用函数指针就只能写比较某一类型比如int类型的max函数,这个max无法比较string的大小。函数指针的意义就不多说了。 执行结果: C语言代码: 1 #include <stdio.h> 2 void subfu
阅读全文
摘要:首先给出官网:http://echarts.baidu.com/examples/ 简单的教程:http://www.cnblogs.com/youmeng/p/4874897.html
阅读全文
摘要:1 using DevExpress.XtraCharts; 2 using System; 3 using System.Collections.Generic; 4 using System.ComponentModel; 5 using System.Data; 6 using System.
阅读全文
摘要:devexpress官网chart:https://documentation.devexpress.com/WindowsForms/8117/Controls-and-Libraries/Chart-Control https://documentation.devexpress.com/Win
阅读全文
摘要:1.关闭VS; 2.删除C:/Users//AppData/Local/Microsoft/VisualStudio/12.0/ComponentModelCache文件夹下所有文件及文件夹; 3.重新打开VS即可。 参考:http://blog.csdn.net/sinat_27305053/ar
阅读全文
摘要:加标题: 1 using System; 2 using System.Windows.Forms; 3 using DevExpress.XtraCharts; 4 // ... 5 6 namespace SideBySideBar2D { 7 public partial class Form
阅读全文
摘要:1. StringBuilder sb = new StringBuilder(); StringBuilder的改变比string快多了 2. sb.Append("\r\n"); //向stringbuilder中添加内容 3. richTextBox1output.AppendText(sb.
阅读全文
摘要:在遗传算法中,只需要对适应性函数评分进行排序,没必要对所有的个体也参与排序,因为在适应性函数评分排序是可以纪律下最初的索引,排序后的索引随着元素排序而变动,这样就知道那个评分对应那个个体了: 1 using System; 2 using System.Collections.Generic; 3
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleApp
阅读全文
摘要:我们知道listbox和combobox的区别就是listbox是下拉列表框,只能下拉,不支持在listbox中自定义输入,而combobox是textbox和listbox的合体,被称为组合框。 combobox有时也被用作listbox使用,那如何才能想listbox那样只能选择,不能输入呢,这
阅读全文
摘要:1 ////创建xmldoc的xml文档 2 //XmlDocument xmldoc = new XmlDocument(); 3 ////加入XML的声明段落:<?xmlversion="1.0" encoding="utf-8"?> 4 //XmlDeclaration xmldecl = x
阅读全文
摘要:C# DataTable 详解 参考:https://www.cnblogs.com/Sandon/p/5175829.html http://blog.csdn.net/singgel/article/details/51833116 1 namespace DXApplication1XtraT
阅读全文
摘要:参考panel添加窗体: http://blog.csdn.net/illegalname/article/details/65444249 http://blog.csdn.net/Eastmount/article/details/21461275 1 using System; 2 using
阅读全文
摘要:请教,在List集合中怎么得到元素的索引值,参考:http://www.myexception.cn/c-sharp/385022.html 这个可以用来读取窗口的多个textbox控件中内容: 1 解决方案 2 你可以使用FindIndex方法 3 C# code 4 private void F
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ConsoleApplication2 7 { 8 class Program 9
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using System.Linq; 5 using System.Text; 6 using System.Threading; 7
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7
阅读全文
摘要:首先是一个关机器的一般方法: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace DelegateDemo 7 { 8 class Pr
阅读全文
摘要:参考:http://www.tracefact.net/tech/009.html 张子阳:http://www.cnblogs.com/JimmyZhang/archive/2007/09/23/903360.html#3859414 分分钟用上事件和委托:https://www.cnblogs.
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace array1 7 { 8 public class student 9 { 10 p
阅读全文