<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[wesson08的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/wesson08</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; wesson08]]></copyright><item><title><![CDATA[VirtualBox中CentOS扩容至根分区]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/45037215</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/45037215</guid><author>wesson08</author><pubDate>Tue, 14 Apr 2015 08:59:25 +0800</pubDate><description><![CDATA[对于目前的网络开发者来说，比较好的搭档就是Win7+VirtualBox+CentOS的组合，既可以发挥Linux强大的网络服务功能，也可以有效的隔离各项服务拖慢系统，影响系统的运行，对于新手来说可以减少配置错误带来的损失，最主要的是方便移植，不同每次重装系统，都要痛苦的安装配置一大堆东西。

但如果当我们在虚拟机中安装和使用的时候，发现系统存储不够用，怎么办，使用VirtualBox 4 版]]></description><category></category></item><item><title><![CDATA[如何删除主键的聚集索引]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/41337969</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/41337969</guid><author>wesson08</author><pubDate>Fri, 21 Nov 2014 02:12:05 +0800</pubDate><description><![CDATA[当我们对一个表建立一个主键时，默认会给该主键列添加一条聚集索引，这是数据库内部自动建立的，唯一性约束也会默认创建一个非聚集索引。

create table MyTable
(
   id int identity(1,1) primary key,
   name nvarchar(10) unique
)
  exec sp_helpindex MyTable


 

 
]]></description><category></category></item><item><title><![CDATA[SQL object_id()函数]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/41104927</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/41104927</guid><author>wesson08</author><pubDate>Fri, 14 Nov 2014 02:04:51 +0800</pubDate><description><![CDATA[OBJECT_ID（）---返回架构范围内对象的数据库对象标识号
语法：
 OBJECT_ID ( '[ database_name . [ schema_name ] . | schema_name . ] 
    object_name' [ ,'object_type' ] )
参数：
' object_name '
要使用的对象。object_name 的数据类型为 varc]]></description><category></category></item><item><title><![CDATA[用户、组以及相关文件说明]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/39777381</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/39777381</guid><author>wesson08</author><pubDate>Sat, 04 Oct 2014 07:47:16 +0800</pubDate><description><![CDATA[用户分类：

管理员：root用户，UID为0

系统用户：UID范围1-499

一般用户：UID范围：500-60000




组分类：

基本组或私有组：创建用户时，如果没有为其指定所属的组，则系统默认会创建一个与用户名同名的组。

附属组：默认组以外的其他组。




当一个用户执行程序的时候，系统会判断当前用户有没有权限执行这个程序，如果没有权限]]></description><category></category></item><item><title><![CDATA[FindFirstFile用法]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17752933</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17752933</guid><author>wesson08</author><pubDate>Thu, 02 Jan 2014 11:07:22 +0800</pubDate><description><![CDATA[void CFindFilesDlg::OnBnClickedButton1()
{
 // TODO: 在此添加控件通知处理程序代码
 CString c1;
 CString stredit;
 CString strtemp;
 HANDLE hFile;
 WIN32_FIND_DATA fileinfo;
 DWORD errorcode = 0;
 m_Edit1.G]]></description><category></category></item><item><title><![CDATA[CloseHandle()函数隐藏在Createthread后面究竟有什么作用]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17752333</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17752333</guid><author>wesson08</author><pubDate>Thu, 02 Jan 2014 10:41:12 +0800</pubDate><description><![CDATA[CloseHandle()函数隐藏在Createthread后面究竟有什么作用？？


很多程序在创建线程都这样写的：
............
ThreadHandle = CreateThread(NULL,0,.....);
CloseHandel(ThreadHandle );
。。。。。
这不是刚好创建又关闭了吗？线程怎么运行呢？

=================]]></description><category></category></item><item><title><![CDATA[snprintf函数用法]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17682031</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17682031</guid><author>wesson08</author><pubDate>Mon, 30 Dec 2013 15:31:06 +0800</pubDate><description><![CDATA[int snprintf(char *restrict buf, size_t n, const char * restrict  format, ...);

函数说明:最多从源串中拷贝n－1个字符到目标串中，然后再在后面加一个0。所以如果目标串的大小为n 的话，将不会溢出。

函数返回值:若成功则返回欲写入的字符串长度，若出错则返回负值。

Result1(推荐的用法)

#i]]></description><category></category></item><item><title><![CDATA[noncopyable详解]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17680197</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17680197</guid><author>wesson08</author><pubDate>Mon, 30 Dec 2013 14:06:25 +0800</pubDate><description><![CDATA[头文件: "boost/utility.hpp"

通常编译器都是程序员的好朋友，但并不总是。它的好处之一在于它会自动为我们提供复制构造函数和赋值操作符，如果我们决定不自己动手去做的话。这也可能会导致一些不愉快的惊讶，如果这个类本身就不想被复制(或被赋值)。如果真是这样，我们就需要明确地告诉这个类的使用者复制构造以及赋值是被禁止的。我不是说在代码中进行注释说明，而是说要禁止对复制构造函数以及赋]]></description><category></category></item><item><title><![CDATA[WIN32_FIND_DATA结构]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17579681</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17579681</guid><author>wesson08</author><pubDate>Thu, 26 Dec 2013 11:41:35 +0800</pubDate><description><![CDATA[WIN32_FIND_DATA结构描述了一个由FindFirstFile, FindFirstFileEx, 或FindNextFile函数查找到的文件信息，

typedef struct _WIN32_FIND_DATA {

　　 DWORD dwFileAttributes; //文件属性

　　 FILETIME ftCreationTime; // 文件创建时间

　　]]></description><category></category></item><item><title><![CDATA[该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17579275</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17579275</guid><author>wesson08</author><pubDate>Thu, 26 Dec 2013 11:23:26 +0800</pubDate><description><![CDATA[该文件包含不能在当前代码页(936)中表示的字符
netaddress.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失

以前在LINUX下写的跨平台库，考到VS2010 下后 提示这个，我知道是啥原因 换行符嘛。蛋杂解决呢？ 不是禁用哈，是咋个重新保存哦？

------解决方案-----]]></description><category></category></item><item><title><![CDATA[socket函数]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17504977</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17504977</guid><author>wesson08</author><pubDate>Mon, 23 Dec 2013 15:09:13 +0800</pubDate><description><![CDATA[Windows套接字技术
套接字（Socket）是网络通信的基本构件，最初 是由加利福尼亚大学Berkeley学院为UNIX开发的网络通信编程接口，它只能运行在UNIX操作系统，不支持DOS和Windows操作系统。随着 Windows操作系统的日益推广，90年代初，微软和第三方厂商共同制定了一套标准，即Windows Socket规范，简称WinSock。本节将介绍有关Windows套接字的相]]></description><category></category></item><item><title><![CDATA[string 转化为 LPCWSTR]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17397369</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17397369</guid><author>wesson08</author><pubDate>Wed, 18 Dec 2013 16:47:47 +0800</pubDate><description><![CDATA[将string 转化为 LPCWSTR:

string strText = "你好";

size_t size = string.length();

wchar_t *buffer = new wchar_t[size+1];

MultiByteToWideChar( CP_ACP, 0, strText.c_str(), size, buffer, size * size]]></description><category></category></item><item><title><![CDATA[Oracle的substr函数简单用法]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17347459</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17347459</guid><author>wesson08</author><pubDate>Mon, 16 Dec 2013 09:30:37 +0800</pubDate><description><![CDATA[substr(字符串,截取开始位置,截取长度) //返回截取的字

substr('Hello World',0,1) //返回结果为 'H'  *从字符串第一个字符开始截取长度为1的字符串
substr('Hello World',1,1) //返回结果为 'H'  *0和1都是表示截取的开始位置为第一个字符
substr('Hello World',2,4) //返回结果为 'ello]]></description><category></category></item><item><title><![CDATA[static_cast<>和reinterpret_cast<>]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17258571</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17258571</guid><author>wesson08</author><pubDate>Wed, 11 Dec 2013 09:38:43 +0800</pubDate><description><![CDATA[本文讨论static_cast。

介绍

大多程序员在学C++前都学过C，并且习惯于C风格（类型）转换。当写C++（程序）时，有时候我们在使用static_cast时可能会有点模糊。在本文中，我将说明static_cast

泛型（Generic Types）



01.float f
 = 12.3;

02. 

03.float*
 pf = &f;
]]></description><category></category></item><item><title><![CDATA[fseek函数与ftell函数联系与区别]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17225459</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17225459</guid><author>wesson08</author><pubDate>Mon, 09 Dec 2013 16:38:12 +0800</pubDate><description><![CDATA[fseek函数是 用来设定文件的当前读写位置.

函数原型:   int fseek(FILE *fp,long offset,int origin);

函数功能:把fp的文件读写位置指针移到指定的位置.

fseek(fp,20,SEEK_SET); 意思是把fp文件读写位置指针从文件开始后移20个字节.

 

ftell函数是用来获取文件的当前读写位置;

函数原型]]></description><category></category></item><item><title><![CDATA[windows下system () 函数详解]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17224803</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17224803</guid><author>wesson08</author><pubDate>Mon, 09 Dec 2013 16:11:52 +0800</pubDate><description><![CDATA[windows下system () 函数详解　

　windows操作系统下system () 函数详解（主要是在C语言中的应用）　函数名: system


　　功 能: 发出一个DOS命令


　　用 法: int system(char *command);


　　system函数已经被收录在标准c库中，可以直接调用


　　程序例:


　　#inclu]]></description><category></category></item><item><title><![CDATA[C语言中time函数]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17223353</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17223353</guid><author>wesson08</author><pubDate>Mon, 09 Dec 2013 15:07:55 +0800</pubDate><description><![CDATA[void main()

{  

struct tm *newtime;

char tmpbuf[128];

 time_t lt1;

    time(

newtime = localtime(

strftime(tmpbuf,128,"  year =%Y; month = %m;day =%d; /n",newtime);

printf(tmpb]]></description><category></category></item><item><title><![CDATA[WaitForSingleObject的用法]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17218975</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17218975</guid><author>wesson08</author><pubDate>Mon, 09 Dec 2013 10:50:01 +0800</pubDate><description><![CDATA[WaitForSingleObject的用法                                      

 
1.WaitForSingleObject 的用法
				
DWORD
WaitForSingleObject(
                     HANDLE hHandle, 
                     DWORD dwMillise]]></description><category></category></item><item><title><![CDATA[ASSERT_VALID和ASSERT宏分析]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/17091761</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/17091761</guid><author>wesson08</author><pubDate>Tue, 03 Dec 2013 10:24:25 +0800</pubDate><description><![CDATA[这个宏都是MFC的调试宏.

ASSERT_VALID宏用来在运行时检查一个对象的内部合法性，比如说现在有一个学生对象，我们知道每个学生的年龄一定大于零，若年龄小于零，则该学生对象肯定有问题。

 

事实上，ASSERT_VALID宏就是转化为对象的成员函数AssertValid()的调用，只是这种方法更安全。它的参数是一个对象指针，通过这个指针来调用它的AssertValid()成]]></description><category></category></item><item><title><![CDATA[C++的namespace详解1]]></title><link>https://blog.youkuaiyun.com/wesson08/article/details/9388671</link><guid>https://blog.youkuaiyun.com/wesson08/article/details/9388671</guid><author>wesson08</author><pubDate>Sat, 20 Jul 2013 10:00:20 +0800</pubDate><description><![CDATA[所谓namespace，是指标识符的各种可见范围。C＋＋标准程序库中的所有标识符都被定义于一个名为std的namespace中。




一 、和格式不一样　　前者没有后缀，实际上，在你的编译器include文件夹里面可以看到，二者是两个文件，打开文件就会发现，里面的代码是不一样的。 后缀为.h的头文件c++标准已经明确提出不支持了，早些的实现将标准库功能定义在全局空间里，声明在带.h后]]></description><category></category></item></channel></rss>