<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hevvy的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/hevvy</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; hevvy]]></copyright><item><title><![CDATA[剔除编译可通过的C++程序COMMENT]]></title><link>https://blog.youkuaiyun.com/hevvy/article/details/1922470</link><guid>https://blog.youkuaiyun.com/hevvy/article/details/1922470</guid><author>hevvy</author><pubDate>Fri, 07 Dec 2007 13:39:00 +0800</pubDate><description><![CDATA[忙里偷闲发现代码好乱,重新写了下去除COMMENT的程序,应该可以算是比较完美的版本.凡是能编译通过的,经过测试大部分都可以正确运行.代码如下:#include #include #include using namespace std;string load_file(string sPath){ string s; string sWhole; ifstream in(sPat]]></description><category></category></item><item><title><![CDATA[一个自动剔除COMMENT的C++程序]]></title><link>https://blog.youkuaiyun.com/hevvy/article/details/1888430</link><guid>https://blog.youkuaiyun.com/hevvy/article/details/1888430</guid><author>hevvy</author><pubDate>Fri, 16 Nov 2007 14:29:00 +0800</pubDate><description><![CDATA[今天突然有人问我有没有写过自动去除标准C++源文件COMMENT 的程序.这让我一下想起当初面微软的时候现场写的1个程序,当初考虑的实在太不周全,导致直接被BS.如今我可以从容的写这个程序,不过在写完这个程序突然发现1个问题.原来这个貌似简单的程序有这么多的陷阱.1.COMMENT 有两种形式"//","/*...*/".对于"//"情况固然简单因为只要单行处理即可.但是碰到"/*"情]]></description><category></category></item><item><title><![CDATA[malloc与strlen一起使用的注意点]]></title><link>https://blog.youkuaiyun.com/hevvy/article/details/1880371</link><guid>https://blog.youkuaiyun.com/hevvy/article/details/1880371</guid><author>hevvy</author><pubDate>Mon, 12 Nov 2007 14:42:00 +0800</pubDate><description><![CDATA[char *p = (char *)malloc(sizeof(char) * 10);memcpy(p, "helloworld" , 10);printf("%d", strlen(p));也许每个记得C的人都会很快回答 10嘛.可是事实呢,不妨你可以放到任何1个编译器里面,会发现很神奇的事情.但是事实为什么与10差距这么大,而且会是1个根本搭不上关系的数字.事实只能说]]></description><category></category></item><item><title><![CDATA[acm peking 1163]]></title><link>https://blog.youkuaiyun.com/hevvy/article/details/1818827</link><guid>https://blog.youkuaiyun.com/hevvy/article/details/1818827</guid><author>hevvy</author><pubDate>Wed, 10 Oct 2007 17:11:00 +0800</pubDate><description><![CDATA[#include #include using namespace std;int *array1;int countnum(int row){ int sum=0; for(int i=0;i {  sum+=i+1; } return sum;}int initarray(int *i, int num){ int m; for(int j=0;j {  cin>>m;  *(i+]]></description><category></category></item><item><title><![CDATA[C1803:ERROR Cannot open precompiled header file: 'Debug/.pch': No such file or directory]]></title><link>https://blog.youkuaiyun.com/hevvy/article/details/1801259</link><guid>https://blog.youkuaiyun.com/hevvy/article/details/1801259</guid><author>hevvy</author><pubDate>Wed, 26 Sep 2007 11:16:00 +0800</pubDate><description><![CDATA[C1083:Cannot open precompiled header file: Debug/.pch: No such file or directoryThis error results from a missing file -the compiled version of StdAfx.cpp. Visual C++ does a poor job of keeping ]]></description><category></category></item><item><title><![CDATA[关于WINDOWS SDK WM_PAINT的一些想法]]></title><link>https://blog.youkuaiyun.com/hevvy/article/details/1771363</link><guid>https://blog.youkuaiyun.com/hevvy/article/details/1771363</guid><author>hevvy</author><pubDate>Tue, 04 Sep 2007 10:27:00 +0800</pubDate><description><![CDATA[      看了很多关于WM_PAINT的BLOG ，发现网上一些误区，我翻看了WINDOWS程序设计参考一些意见，现总结如下（仅供参考）：     1。Windows内部为每个窗口保存一个「绘图信息结构」，这个结构包含了包围无效区域的最小矩形的坐标以及其它信息，这个矩形就叫做「无效矩形」，有时也称为「无效区域」。如果在窗口消息处理程序处理WM_PAINT消息之前显示区域中的另一个区域变为无效]]></description><category></category></item><item><title><![CDATA[看高质量C代码感悟]]></title><link>https://blog.youkuaiyun.com/hevvy/article/details/1770389</link><guid>https://blog.youkuaiyun.com/hevvy/article/details/1770389</guid><author>hevvy</author><pubDate>Mon, 03 Sep 2007 16:00:00 +0800</pubDate><description><![CDATA[        今天第一天上班，感觉来到一个不错的团体，虽然无法跟Ms无法跟INTEL相比。但是与自己的初衷也相符合。第一天仍然还没上班，公司给了份项目介绍，看了一会发现自己应该能够胜任吧。就开始了自学的道路，翻开优快云，看了下很多文章都写的不错，但是突然对林锐的一个高质量的C语言特别感兴趣，刚开始还自己做后面的试题，哈哈，看来以前的C/C++的功底还是不错，能进入上海啊贝啦？（他说的而已）。]]></description><category></category></item></channel></rss>