<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[落单的毛毛虫]]></title><description><![CDATA[活着有无意义就看折腾的程度.]]></description><link>https://blog.youkuaiyun.com/mmc1206x</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; mmc1206x]]></copyright><item><title><![CDATA[cocos2d-x 音乐播放猜想]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/23172835</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/23172835</guid><author>mmc1206x</author><pubDate>Tue, 08 Apr 2014 11:32:02 +0800</pubDate><description><![CDATA["SimpleAudioEngine.cpp":




void SimpleAudioEngine::playBackgroundMusic(const char* pszFilePath, bool bLoop)
{
    if (! pszFilePath)
    {
        return;
    }

    sharedMusic().Open(_FullPat]]></description><category></category></item><item><title><![CDATA[截屏小工具.]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/22858491</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/22858491</guid><author>mmc1206x</author><pubDate>Thu, 03 Apr 2014 12:00:42 +0800</pubDate><description><![CDATA[最近写了个拼图游戏, 是自从学D2D以来做的第二款, 在特效上花了些心思, 渐变, 缩放, 最大亮点是可以自动拼图.
我想把这个拼图放到博客上来, 但是我需要一个GIF图动态展示这个游戏的效果, 因此我需要一个截屏的工具.
我率先想到的居然不是屏幕录制, 而是把过程一张张图截下做成GIF.
由于懒得去找现成的工具, 于是自己就写了一个..




简介:




输入时间]]></description><category></category></item><item><title><![CDATA[恶补 数学.]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/20723723</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/20723723</guid><author>mmc1206x</author><pubDate>Fri, 07 Mar 2014 17:35:54 +0800</pubDate><description><![CDATA[三角函数.
sin 正弦, 对边比斜边.
cos余弦, 邻边比斜边.]]></description><category></category></item><item><title><![CDATA[逆序链表]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/19123649</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/19123649</guid><author>mmc1206x</author><pubDate>Wed, 12 Feb 2014 16:48:28 +0800</pubDate><description><![CDATA[昨天第一次面试, 惨败而归...
每次笔试都情不自禁当成草稿, 随手就写, 写错就画. 对于一些基础问题  double x = 5/2; 我写的2.5, 答案是2.500000貌似.
最难的题目就是一个排序题, 不要求排序算法, 只要能从小到大排序即可,
这个确实很简单, 但是...  我当然作对了!!!
话不多说, 进入正题...


逆序链表, 不是逆序数出, 是把链表顺序彻底]]></description><category></category></item><item><title><![CDATA[一个老程序员的建议]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18960857</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18960857</guid><author>mmc1206x</author><pubDate>Fri, 07 Feb 2014 12:40:08 +0800</pubDate><description><![CDATA[本文是《Learn Python The Hard Way, 2nd Edition》这本书的尾声部分。

看完了这本书，你决定继续做编程。也许它能成为你的一个职业，也许它能成为你的一项爱好。但你需要一些指导，确保自己不会走错了道路，或帮助你从这个新业余爱好中得到最大的乐趣。

我做了很久的编程。久的你都想象不出来，久的都让我苦恼。就在我写这本书的时候，我大概懂20种编程语言，而且我可以用]]></description><category></category></item><item><title><![CDATA[逐渐成长的小菜鸟]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18899165</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18899165</guid><author>mmc1206x</author><pubDate>Sun, 02 Feb 2014 11:29:25 +0800</pubDate><description><![CDATA[因为初中成绩走了下坡路, 于是走上技校的不归路. 初中毕业后就读了5年制大专, 因为对黑客的向往, 对计算机的迷恋, 选择了计算机专业.
    起初我抱着跟同学好好学习, 天天向上的美好愿景到处跟同学讨论编程, 在进入这个学校前, 我看过一点点vb. 因此我顺理成章成了同学们眼中的计算机大神, 在他们还不知道二进制, 八进制, 十进制, 十六进制的时候, 我已经能在纸上把转换的过程写给他们看了]]></description><category></category></item><item><title><![CDATA[最精确时间间隔]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18893133</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18893133</guid><author>mmc1206x</author><pubDate>Sat, 01 Feb 2014 09:27:10 +0800</pubDate><description><![CDATA[GetTickCount() 返回开机到函数调用持续的毫秒, 这个函数有16毫秒的误差.


下面使用高精度的函数来计算间隔.
LARGE_INTEGER frequency, large_beg, large_end;

QueryPerformanceFrequency(&frequency);

QueryPerformanceCounter(&large_beg);

// 执行其]]></description><category></category></item><item><title><![CDATA[修改标签透明度]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18813415</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18813415</guid><author>mmc1206x</author><pubDate>Mon, 27 Jan 2014 14:21:15 +0800</pubDate><description><![CDATA[//	FF 浏览器
	document.getElementById("IMG1").style.opacity = "0.5";
// 	IE 浏览器
	document.getElementById("IMG1").style.filter = 'alpha(opacity=50)';W3C标准的写法跟FF浏览器一样.]]></description><category></category></item><item><title><![CDATA[打开, 关闭显示器]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18813193</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18813193</guid><author>mmc1206x</author><pubDate>Mon, 27 Jan 2014 14:13:09 +0800</pubDate><description><![CDATA[SendMessage(hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, 2);


WM_SYSCOMMAND 意为“窗口消息_系统指令”
SC_MONITORPOWER 意为“系统指令_显示器电源”


-1 (the display is powering on) 打开显示器
1 (the display is going to low power)]]></description><category></category></item><item><title><![CDATA[获取本机外网IP]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18812175</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18812175</guid><author>mmc1206x</author><pubDate>Mon, 27 Jan 2014 12:48:20 +0800</pubDate><description><![CDATA[#include 
#include 

using namespace std;
using namespace mmc;

#pragma comment(lib, "MMCSocket.lib")

bool GetIP(MMCSocket *pSock, char *ip);

int main()
{
	char ip[BUFSIZ] = {0};

	MMCSocket sock;
	]]></description><category></category></item><item><title><![CDATA[C++输入输出Unicode编码]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18809271</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18809271</guid><author>mmc1206x</author><pubDate>Mon, 27 Jan 2014 09:47:19 +0800</pubDate><description><![CDATA[在使用C++输入输出Unicode编码的时候经常出现乱码或者输出空的.
之前在网上找到靠谱的方法 setlocale(LC_ALL,"chs")
这是C的方法, 调用这个函数之后 wcout 可以输出Unicode编码, 但是wifsream会出现乱码. 
因此要采用C++的方法. std::locale::global(locale("cls"));
调用该函数之后就可以使用Unicod]]></description><category></category></item><item><title><![CDATA[C++ IO格式控制]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18809251</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18809251</guid><author>mmc1206x</author><pubDate>Mon, 27 Jan 2014 09:42:14 +0800</pubDate><description><![CDATA[iomanip.h是I/O流控制头文件,就像C里面的格式化输出一样.
以下是一些常用的函数: 
dec 置基数为10 相当于"%d" 
hex 置基数为16 相当于"%X" 
oct 置基数为8 相当于"%o" 
setfill(c) 设填充字符为c 
setprecision(n) 设显示小数精度为n位 
setw(n) 设域宽为n个字符 
setiosflags(ios::fi]]></description><category></category></item><item><title><![CDATA[Direct 2D 平铺位图.]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18764649</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18764649</guid><author>mmc1206x</author><pubDate>Sat, 25 Jan 2014 11:07:44 +0800</pubDate><description><![CDATA[在需要将同样内容平铺区域的时候.
通常用循环来绘制.
Direct 2D为我们提供了平铺画刷.
D2D1_BITMAP_BRUSH_PROPERTIES brushProperties = 
　  D2D1::BitmapBrushProperties(D2D1_EXTEND_MODE_WRAP, D2D1_EXTEND_MODE_WRAP);

hr = m_pRenderTarget->]]></description><category></category></item><item><title><![CDATA[Direct 2D 加载位图.]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18764489</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18764489</guid><author>mmc1206x</author><pubDate>Sat, 25 Jan 2014 11:02:28 +0800</pubDate><description><![CDATA[HRESULT LoadImageFormFile(
                          ID2D1RenderTarget *pRT,
                          IWICImagingFactory *pWicFactory,
                          PCTSTR url,
                          ]]></description><category></category></item><item><title><![CDATA[给出若干个位数字, 计算所有不重复组合.]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18764337</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18764337</guid><author>mmc1206x</author><pubDate>Sat, 25 Jan 2014 10:52:09 +0800</pubDate><description><![CDATA[比如123, 那么就有123, 132, 213, 231, 312, 321. 六种组合.

　 这个问题很久前就看过, 但是一直都没去关注(因为关注了也做不出来- -||). 就在今天, 我突然就想要解开这个题, 说干就干, 苦思冥想之后, 完全没有头绪. 在百度上搜索了一番之后, 终于在优快云上找到了一模一样的问题. 解题方法相当繁琐.


解题代码:
int main()
{]]></description><category></category></item><item><title><![CDATA[操蛋的Bug]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/18764159</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/18764159</guid><author>mmc1206x</author><pubDate>Sat, 25 Jan 2014 10:46:34 +0800</pubDate><description><![CDATA[自己实现了一个内存分配器, 再用这个分配器实现了一个链表, 每次在分配器析构的时候程序都出现致命错误. 分配器的析构函数中只有一行代码,
operator delete [](m_pMemory);
这是头一次如何频繁使用 operator new[], operator delete[], 调试了很久不得其解, 网上寻求答案. 搜索引擎都快点烂了, 收获也不小.

　　起先搜出来个 no]]></description><category></category></item><item><title><![CDATA[vbs重启路由器]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/9177481</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/9177481</guid><author>mmc1206x</author><pubDate>Wed, 26 Jun 2013 12:40:53 +0800</pubDate><description><![CDATA['name: TP-Link 重启.vbs
user = "admin" '路由器帐号
pass = "admin" '路由器密码

With CreateObject("Msxml2.ServerXMLHTTP")
    .open "GET", "http://192.168.1.1/userRpm/SysRebootRpm.htm?Reboot=重启路由器", False, user, p]]></description><category></category></item><item><title><![CDATA[能ping通, 不能访问 解决办法]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/8994451</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/8994451</guid><author>mmc1206x</author><pubDate>Thu, 30 May 2013 14:12:26 +0800</pubDate><description><![CDATA[netsh winsock reset catalog
重启]]></description><category></category></item><item><title><![CDATA[VBS U盘插入提示]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/8718431</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/8718431</guid><author>mmc1206x</author><pubDate>Mon, 25 Mar 2013 18:55:09 +0800</pubDate><description><![CDATA[strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colEvents = objWMIService.ExecNotificationQuery _
    ("Select * From __InstanceOperationEvent Within]]></description><category></category></item><item><title><![CDATA[双重加密VBS, VBE文件]]></title><link>https://blog.youkuaiyun.com/mmc1206x/article/details/8718426</link><guid>https://blog.youkuaiyun.com/mmc1206x/article/details/8718426</guid><author>mmc1206x</author><pubDate>Mon, 25 Mar 2013 18:54:51 +0800</pubDate><description><![CDATA['Encoder加密
Function Encoder(data)
	with CreateObject("Scripting.Encoder")
		Encoder=.EncodeScriptFile(".vbs",data,0,"VBScript")
	end with
End Function

'ASCII加密
Function ASCII(Data)
	C = Len(Data)
	Fo]]></description><category></category></item></channel></rss>