-
FractalDim
可以再研究非线性动力学问题中计算分形维数的Matlab程序(fractal dimension Matlab algorithm in nonliner dynaimcal systems )
- 2013-04-11 10:23:48下载
- 积分:1
-
串口助手
带波形显示的串口助手,分享给大家,希望对大家有所帮助,含源码!!(Serial Port Assistant with Waveform, Containing Source Code!!)
- 2018-11-29 22:53:27下载
- 积分:1
-
WumpusWorld
说明: wumpus世界 比较草稿的版本 但是也比现有的强很多 做UML作业用的 (Comparison of the draft version of the wumpus world, but a lot stronger than the existing work done using UML)
- 2020-11-02 22:49:53下载
- 积分:1
-
maopao_youhua
冒泡优化:
如果一个序列是int n[]={1,2,3,4,5,6,7,8,9} , 用正常的冒泡排序需要排8次才行,优化之后1次就好,也就是说序列越接近于正常序列,改进之后的冒泡排序的次数就越少,这样会给一个冒泡排序算法带了很大的效率。
思想:添加一个boolean变量用来判断冒泡是否是已经排好了顺序,如果boolean的值为false,说明是已经排好了,如果boolean的值true,说明没有排好,继续排。(If a sequence is int n [] = {, 1,2,3,4,5,6,7,8,9} need to row 8 times the job after optimization times like normal bubble sort, but alsomeans that the sequence is more close to the normal sequence, improved bubble sort, the less the number, which would give a bubble sort algorithm with a great deal of efficiency.
Idea: add a boolean variable used to determine the bubble whether it is already lined up the order, if the boolean is false, indicating already lined up, if the boolean value of true, did not line up, continue to row.)
- 2012-04-18 00:33:45下载
- 积分:1
-
Accelerating_Matlab_with_CUDA
Nivada之CUDA,加速Matlab运算的文档资料。(Nivada of CUDA, speed up the Matlab computing documentation.)
- 2009-12-23 10:20:18下载
- 积分:1
-
倍福CNC 界面
倍福CNC 界面using System;using System.Windows.Forms;namespace TcApplication{ static class Program { [System.Runtime.InteropServices.DllImport("User32.dll")] static extern IntPtr SetForegroundWindow(IntPtr hWnd); [System.Runtime.InteropServices.DllImport("User32.dll")] static extern IntPtr ShowWindow(IntPtr hWnd, int nCmdShow); public static MainApp mainApp; static FormSplash formSplash; static bool exceptionSignaled; static Timer timerSplashWait; const int SW_RESTORE = 9; #region Main Entry /// /// The main entry point for the application. /// [STAThread] static void Main() { //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); Application.ThreadException = new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); if (CheckActiveProcess() == true) { Application.Exit(); return; } ShowSplashScreen(); // BasicConfigurator.Configure(); log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(Application.StartupPath "\System\log.xml")); // Einschalten internes Debugging der LOG Komponenete // log4net.Util.LogLog.InternalDebugging = true; MainApp.log.Info("Application started."); // set the NumberGroupSeparator for all forms System.Globalization.CultureInfo newCultureInfo = new System.Globalization.CultureInfo(System.Threading.Thread.CurrentThread.CurrentCulture.LCID); newCultureInfo.NumberFormat.NumberDecimalSeparator = "."; newCultureInfo.NumberFormat.NumberGroupSeparator = ","; newCultureInfo.TextInfo.ListSeparator = ";"; Application.CurrentCulture = newCultureInfo; // load the settings MainApp.appSettings = new Settings(); MainApp.appSettings.FileName = Application.StartupPath "\System\AppSet.xml"; MainApp.appSettings.ReadSettings(); mainApp = new MainApp(); Application.Run(mainApp); MainApp.log.Info("Application stopped."); MainApp.appSettings.WriteSettings(); } #endregion #region Public functions public static void ShowSplashScreen() { String[] arguments = Environment.GetCommandLineArgs(); for (int i = 1; i < arguments.Length; i ) { if (arguments[i].StartsWith("/NoSplash")) return; } if (formSplash == null) formSplash = new FormSplash(); if (timerSplashWait == null) { timerSplashWait = new Timer(); timerSplashWait.Tick = new EventHandler(timerSplashWait_Tick); } formSplash.Parameters("HMI " Application.ProductVersion, 325, 296, new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))), System.Drawing.Color.FromArgb(0, 104, 157), System.Drawing.Color.Black); formSplash.Show(); Application.DoEvents(); } static void timerSplashWait_Tick(object sender, EventArgs e) { timerSplashWait.Enabled = false; CloseSplashScreen(); } public static void CloseSplashScreen(int interval) { if (interval < 1) interval = 1; if (timerSplashWait != null) { timerSplashWait.Interval = interval; timerSplashWait.Enabled = true; } } public static void CloseSplashScreen() { if (formSplash != null) { formSplash.Close(); formSplash.Dispose(); formSplash = null; } } public static void BringSplashToFront() { if (formSplash != null) formSplash.BringToFront(); } public static void SplashTopMost(bool level) { if (formSplash != null) formSplash.TopMost = level; } #endregion #region Private functions private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { if (!exceptionSignaled) { exceptionSignaled = true; MainApp.log.Fatal(sender, e.Exception); Beckhoff.App.ExceptionDialog exc = new Beckhoff.App.ExceptionDialog(); exc.SetText(Application.ProductName " has encountered a problem." "For further information take a look to the application event log!", e.Exception); exc.ShowDialog(); exceptionSignaled = !exc.ExceptionSignaledChecked; exc.Dispose(); exc = null; } } private static bool CheckActiveProcess() { try { int c = System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length; if (c > 0) { bool bFoundSame = false; foreach (System.Diagnostics.Process pr in System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName)) { if (pr.MainModule.FileName == Application.ExecutablePath && pr.Id != System.Diagnostics.Process.GetCurrentProcess().Id) { SetForegroundWindow(pr.MainWindowHandle); // 9 = SW_RESTORE (winuser.h) ShowWindow(pr.MainWindowHandle, SW_RESTORE); bFoundSame = true; } } return bFoundSame; } else { return false; } } catch //(System.Security.SecurityException ex) { return false; } } #endregion }}
- 2020-12-05下载
- 积分:1
-
ODBC打开数据库
ODBC打开数据库-open ODBC database
- 2022-05-10 17:53:36下载
- 积分:1
-
data-structure
对栈、队列、链表、图、树、查找、排序、顺序表等基本功能的实现(Realization of the basic functions of the stack queue list tree search sort order list)
- 2015-06-16 09:52:30下载
- 积分:1
-
ChakraCore x86_release
vs2019 编译的 JavaScript 引擎 ChakraCore
ChakraCore 是微软开源的 Microsoft Edge 浏览器 Chakra JavaScript 引擎的核心部分,主要用于 Microsoft Edge 和 Windows 中 HTML/CSS/JavaScript 编写的应用。
包含 dll lib .h 文件 32位(JavaScript Engine ChakraCore Compiled by vs2019
ChakraCore is the core part of Microsoft Open Source Microsoft Edge Browser Chakra JavaScript Engine. It is mainly used for HTML/CSS/JavaScript applications in Microsoft Edge and Windows.
Contains 32 bits of DLL lib.h file)
- 2020-06-21 16:00:02下载
- 积分:1
-
C# SelectedItem选择移动数据项 点菜功能
这是个实用的小功能,在WEB开发时也经常会看到这种功能,将item数据项由左侧移动到右侧,这是一个选择+移动的功能,全部添加到选择的项中,判断是否已经选择了该菜单项,比如本例子利用左右移动SelectItem项实现了点菜功能:
private void button3_Click(object sender, EventArgs e)//移除所有已经选择的菜
{
lbChoose.Items.Clear();
}
private void button1_Click(object sender, EventArgs e)//单个添加到选择的项中
{
if (lbSocure.SelectedIndex != -1)
{
if (!lbChoose.Items.Contains(lbSocure.Text))//判断是否已经选择了该菜
lbChoose.Items.Add(lbSocure.SelectedItem.ToString());//添加选择的菜
else
MessageBox.Show("您已经选择了该菜,请重新选择。");
}
}
- 2022-06-13 08:29:58下载
- 积分:1