<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Leonhubert的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Leonhubert</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Leonhubert]]></copyright><item><title><![CDATA[omnet++ 参数添加 及遍历网络拓扑]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/12858365</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/12858365</guid><author>Leonhubert</author><pubDate>Fri, 18 Oct 2013 21:10:27 +0800</pubDate><description><![CDATA[//遍历网络所有节点
       cTopology topo("topo");
       topo.extractByProperty("node");


       for (int i=0; i
       {
           cModule *mod = topo.getNode(i)->getModule();
           EVgetFullP]]></description><category></category></item><item><title><![CDATA[Omnet 仿真输出向量和标量]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/12151305</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/12151305</guid><author>Leonhubert</author><pubDate>Sun, 29 Sep 2013 08:47:36 +0800</pubDate><description><![CDATA[仿真过程中会有向量输出和标题输出，默认文件名为omnetpp.vec和omnetpp.sca，尽管omnetpp.ini可以指定输出为不同的文件名，仍需要在简单模块中进行编码以让其拥有记录仿真结果的能力，所以在他人编写的仿真中可能并不创建这些文件。
一个输出向量文件包含若干输出向量，每一个向量都是一个 (timestamp,value) 对。输出向量可以存储例如关于时间的队列长度，接收数据包时端]]></description><category></category></item><item><title><![CDATA[omnet 参数]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/9446655</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/9446655</guid><author>Leonhubert</author><pubDate>Wed, 24 Jul 2013 10:26:18 +0800</pubDate><description><![CDATA[参数属于模块的变量，可用来构建拓扑（节点数量等），为实现简单模块和信道的C++代码提供输入。
1.值
参数可以从ned代码中，从配置文件中，甚至是从何用户的交互过程中。
在ini文件中赋值不能覆盖NED中的值。如果NED中没有赋值，可以用以下方式在ini文件里赋值。
**.sendIaTime=100ms
omnet支持通配符，上面的代码适用于所有名字为sendIaTime的参数。]]></description><category></category></item><item><title><![CDATA[omnet 信道]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/9423993</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/9423993</guid><author>Leonhubert</author><pubDate>Tue, 23 Jul 2013 16:54:54 +0800</pubDate><description><![CDATA[信道与简单模块一样，在某种意义上来说是由一些c++类构成的。信道与模块的实际差别在于没有必要写C++类，因为有预定义的信道类，可以直接将其子类化，继承他们的C++代码。预定义的类型有:ned.IdealChannel、ned.DelayChannel   和ned.DatarateChannel


IdealChannel  理想信道类型  没有参数，可以无延时无失真地使所有消息通过。理想]]></description><category></category></item><item><title><![CDATA[MYSQL的常用命令和增删改查语句和数据类型]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/9319235</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/9319235</guid><author>Leonhubert</author><pubDate>Sat, 13 Jul 2013 16:13:56 +0800</pubDate><description><![CDATA[连接命令：mysql -h[主机地址] -u[用户名] -p[用户密码]  
创建数据库：create database [库名]  
显示所有数据库: show databases;  
打开数据库:use [库名]  
当前选择的库状态:SELECT DATABASE();  
创建数据表:CREATE TABLE [表名]([字段名] [字段类型]([字段要求]) [字段参数],]]></description><category></category></item><item><title><![CDATA[C API操作mysql数据库常用的函数及介绍（全）]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8862244</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8862244</guid><author>Leonhubert</author><pubDate>Sun, 28 Apr 2013 10:17:10 +0800</pubDate><description><![CDATA[1、mysql_connect()-建立数据库连接
格式：
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, stringusername] [, string password]])
例：
$conn = @mysql_connect(”localhost”, “username”, “passwo]]></description><category></category></item><item><title><![CDATA[【数组与指针】如何在C/C++中动态分配二维数组]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8862229</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8862229</guid><author>Leonhubert</author><pubDate>Sun, 28 Apr 2013 10:13:27 +0800</pubDate><description><![CDATA[在C/C++中动态分配二维数组可以先申请一维的指针数组，然后该数组中的每个指针再申请数组，这样就相当于二维数组了，但是这种方法会导致每行可能不相邻，从而访问效率比较低。如何申请连续的二维数组了？本文将分别三个方面讲解：
一．动态申请列大小固定的二维数组
二．C语言中动态申请连续的二维数组
三．C++语言中动态申请连续的二维数组
 

一．动态申请列大小固定的二维数组
首先如果二维数组]]></description><category></category></item><item><title><![CDATA[C++ char*，const char*，string的相互转换]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8862216</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8862216</guid><author>Leonhubert</author><pubDate>Sun, 28 Apr 2013 10:11:36 +0800</pubDate><description><![CDATA[1. string转const char*

string s = "abc";
const char* c_s = s.c_str();



2. const char*转string

   直接赋值即可

const char* c_s = "abc";
string s(c_s);



 3. string转char*
string s = "abc";]]></description><category></category></item><item><title><![CDATA[mysql建表时engine=innodb和engine=myisam的区别]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8843515</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8843515</guid><author>Leonhubert</author><pubDate>Wed, 24 Apr 2013 10:47:49 +0800</pubDate><description><![CDATA[最开始用MySQL Administrator建数据库的时候，表缺省是InnoDB类型，也就没有在意。后来用Access2MySQL导数据的时候发现只能导成 MyISAM类型的表，不知道这两种类型有什么区别，就去查了查。原来是MyISAM类型不支持事务处理等高级处理，而InnoDB类型支持。 MyISAM类型的表强调的是性能，其执行数度比InnoDB类型更快，但是不提供事务支持，而InnoDB提供]]></description><category></category></item><item><title><![CDATA[设置mysql最大连接数]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8819317</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8819317</guid><author>Leonhubert</author><pubDate>Thu, 18 Apr 2013 15:35:42 +0800</pubDate><description><![CDATA[MYSQL数据库安装完成后，默认最大连接数是100，一般流量稍微大一点的论坛或网站这个连接数是远远不够的，增加默认MYSQL连接数的方法有两个

方法一：进入MYSQL安装目录 打开MYSQL配置文件 my.ini 或 my.cnf查找 max_connections=100   修改为 max_connections=1000 服务里重起MYSQL即可

方法二：MySQL的最大连接数默]]></description><category></category></item><item><title><![CDATA[通过C#读取ini文件中的内容]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8743174</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8743174</guid><author>Leonhubert</author><pubDate>Sun, 31 Mar 2013 15:53:48 +0800</pubDate><description><![CDATA[using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;


namespace CommFunc
{
    class Program
    {
        static void]]></description><category></category></item><item><title><![CDATA[通过MySQL提供的C API访问MySQL数据库]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8743156</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8743156</guid><author>Leonhubert</author><pubDate>Sun, 31 Mar 2013 15:49:48 +0800</pubDate><description><![CDATA[在VISUAL C++中访问MySQL 数据库的方式有很多种，可以直接采用ODBC 的方式，也可以采用ADO 访问（此两种方法均需要安装MySQL ODBC驱动）。但是除此之外，MySQL 还提供了一套C API，使得我们可以更加灵活的操作MySQL 中的数据，而且较其他访问方式在速度上的优势非常明显。需要注意的是，在安装MySQL 时必须选择Custom安装方式：
在之后出现的安装步骤中，应当]]></description><category></category></item><item><title><![CDATA[vc++连接mysql数据库，并对数据库中的表进行查询、插入、删除、更新等]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8743135</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8743135</guid><author>Leonhubert</author><pubDate>Sun, 31 Mar 2013 15:45:10 +0800</pubDate><description><![CDATA[#include 
#include 
#include 
#include 
#include  
#include 
#pragma comment(lib,"libmysql.lib")
using namespace std;


MYSQL myCont;;     //mysql连接
char query[1024];   //查询语句


void Que]]></description><category></category></item><item><title><![CDATA[给命令行(cmd)做一个GUI——Process的应用]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8743116</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8743116</guid><author>Leonhubert</author><pubDate>Sun, 31 Mar 2013 15:41:32 +0800</pubDate><description><![CDATA[命令行我想大家都用过：



今天我打算干的，就是把它弄到WinForm里来。。做出来就像这样（动画）





如果你要问这蛋疼的做法有什么意义，看



所以你可以给命令行下的「DOS」程序，穿上一层WinForm的外衣，给原来只有命令行的程序制作一个精美的GUI。。

比如uharc.exe，比如csc.exe

Bla bla bla……

除了命令]]></description><category></category></item><item><title><![CDATA[C#        CheckedListBox控件的用法]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8743051</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8743051</guid><author>Leonhubert</author><pubDate>Sun, 31 Mar 2013 15:29:34 +0800</pubDate><description><![CDATA[1.

添加项


checkedListBox1.Items.Add("蓝色"); 
checkedListBox1.Items.Add("红色"); 
checkedListBox1.Items.Add("黄色");

 

2. 
判断第i项是否选中,选中为true,否则为false


if（checkedListBox1.GetItemChecked(i)）]]></description><category></category></item><item><title><![CDATA[C#获取工程所在目录的各种方法总结]]></title><link>https://blog.youkuaiyun.com/Leonhubert/article/details/8743029</link><guid>https://blog.youkuaiyun.com/Leonhubert/article/details/8743029</guid><author>Leonhubert</author><pubDate>Sun, 31 Mar 2013 15:25:55 +0800</pubDate><description><![CDATA[1.asp.net webform用“Request.PhysicalApplicationPath获取站点所在虚拟目录的物理路径，最后包含“\”；

2.c# winform用
A：“Application.StartupPath”:获取当前应用程序所在目录的路径，最后不包含“\”；
B：“Application.ExecutablePath ”:获取当前应用程序文件的路径，包含文件的名]]></description><category></category></item></channel></rss>