<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[zhhs06的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/zhhs06</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; zhhs06]]></copyright><item><title><![CDATA[VS2010创建第一个C程序]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5952652</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5952652</guid><author>zhhs06</author><pubDate>Tue, 19 Oct 2010 23:05:00 +0800</pubDate><description><![CDATA[<br />VS2010创建第一个C程序<br /><br /><br /><br />１）打开VS2010à“新建项目”à“空项目”à输入名称“Hello World”<br />２）在弹出的“解决方案资源管理器”中右击工程名“Hello World”à“添加”à“新建项”，输入名称Hello World.c。注意这里一定要加上后缀名.c，否则会变成c++程序。<br />３）在弹出的Hello World.c文件中添加代码：<br />#include<stdio.h><br />void main()]]></description><category></category></item><item><title><![CDATA[将阿拉伯数字转化为中文数字，如12“一十二”]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5761341</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5761341</guid><author>zhhs06</author><pubDate>Sat, 24 Jul 2010 14:38:00 +0800</pubDate><description><![CDATA[将阿拉伯数字转化为中文数字，如12à“一十二”<br />1）考虑不包含0的数字<br />#include<stdio.h><br />void main()<br />{<br />      int m;<br />      int c[10];<br />      int i = 0;<br />      char a[10][3] = {"零", "一", "二", "三", "四", "五", "六", "七", "八", "九"};<br />      char b[10][3] = ]]></description><category></category></item><item><title><![CDATA[十进制正数或负数转化为二进制]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5748086</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5748086</guid><author>zhhs06</author><pubDate>Tue, 20 Jul 2010 00:36:00 +0800</pubDate><description><![CDATA[#includevoid printBinary( int x){      int i;      int j =0;      int a[32]={0};      // if x is an integer      if(x>0)      {           while(x)           {                 a[j++] = x % 2;                 x = x / 2 ;           }          }      // else i]]></description><category></category></item><item><title><![CDATA[毕业两周年记]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5748083</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5748083</guid><author>zhhs06</author><pubDate>Tue, 20 Jul 2010 00:35:00 +0800</pubDate><description><![CDATA[<br />毕业两周年记<br />2010-7-12<br /> <br />流年似水，已经毕业两年了。<br />记得大学第四个学期，有一段时间我在疯狂地练打字，因为我当时怕毕业后找不到工作，如果打字够快的话就可以在毕业后当个打字员谋生。当时每天晚自习回去就练五笔打字，练了一个多月，达到每分钟100个左右（用打字软件测的），这个速度离打字员就差一点点了。有一次我姐知道了，说“你怎么就那点出息？”。<br />后来就没再坚持下去了，所以打字速度恐怕是再也没有突破过100个。<br />而今，毕业两年了。看]]></description><category></category></item><item><title><![CDATA[TopCoder算法竞赛题6：SRM 150 DIV 2, 250-point]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5284564</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5284564</guid><author>zhhs06</author><pubDate>Wed, 03 Feb 2010 12:44:00 +0800</pubDate><description><![CDATA[Problem StatementWhen a widget breaks, it is sent to the widget repair shop, which is capable of repairing at most numPerDay widgets per day. Given a record of the number of widgets that arrive at t]]></description><category></category></item><item><title><![CDATA[TopCoder算法竞赛题5：SRM 149 DIV 2, 250-point]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5284560</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5284560</guid><author>zhhs06</author><pubDate>Wed, 03 Feb 2010 12:42:00 +0800</pubDate><description><![CDATA[Problem StatementIn documents, it is frequently necessary to write monetary amounts in a standard format. We have decided to format amounts as follows:the amount must start with $the amount sh]]></description><category></category></item><item><title><![CDATA[TopCoder算法竞赛题4：SRM 148 DIV 2, 250-point]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5259816</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5259816</guid><author>zhhs06</author><pubDate>Tue, 26 Jan 2010 23:46:00 +0800</pubDate><description><![CDATA[Problem StatementCreate a class DivisorDigits containing a method howMany which takes an int number and returns how many digits in number divide evenly into number itself. DefinitionClass: Div]]></description><category></category></item><item><title><![CDATA[TopCoder算法竞赛题3：SRM 147 DIV 2, 250-point]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5259814</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5259814</guid><author>zhhs06</author><pubDate>Tue, 26 Jan 2010 23:45:00 +0800</pubDate><description><![CDATA[Problem StatementJulius Caesar used a system of cryptography, now known as Caesar Cipher, which shifted each letter 2 places further through the alphabet (e.g. A shifts to C, R shifts to T, ]]></description><category></category></item><item><title><![CDATA[TopCoder算法竞赛题2：SRM 146 DIV 2, 250-point]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5259811</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5259811</guid><author>zhhs06</author><pubDate>Tue, 26 Jan 2010 23:44:00 +0800</pubDate><description><![CDATA[Problem StatementThis task is about the scoring in the first phase of the die-game Yahtzee, where five dice are used. The score is determined by the values on the upward die faces after a roll. The ]]></description><category></category></item><item><title><![CDATA[TopCoder算法竞赛题1：SRM 144 DIV 2, 250-point]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5259802</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5259802</guid><author>zhhs06</author><pubDate>Tue, 26 Jan 2010 23:43:00 +0800</pubDate><description><![CDATA[Problem StatementComputers tend to store dates and times as single numbers which represent the number of seconds or milliseconds since a particular date. Your task in this problem is to write a meth]]></description><category></category></item><item><title><![CDATA[理解C语言中的指针（一）]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5166827</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5166827</guid><author>zhhs06</author><pubDate>Sat, 09 Jan 2010 22:14:00 +0800</pubDate><description><![CDATA[问题：(*p)++、*p++、 *(p++)、p++的含义。 1）  先理解p与*p的区别：#includeint main(void){      int *p;                    int a = 4;      p = &a;                   printf("%d/n", p);      printf("%d/n]]></description><category></category></item><item><title><![CDATA[轩辕互动Exoweb笔试题（三）]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5153835</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5153835</guid><author>zhhs06</author><pubDate>Thu, 07 Jan 2010 22:28:00 +0800</pubDate><description><![CDATA[轩辕互动机试题（2010-01-05 15：00~16：00） 1 求一个整型数组里不重复的数的个数。例如数组{2, 1, 1, 2, 3, 1}中的不重复的个数为3。提供的函数原型为int Stat(int a[], int n) { }解法一：#includeusing namespace std; int Stat(int a[], int n){  ]]></description><category></category></item><item><title><![CDATA[递归思想分析----以一个简单的例子为例]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5142366</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5142366</guid><author>zhhs06</author><pubDate>Wed, 06 Jan 2010 13:50:00 +0800</pubDate><description><![CDATA[ 递归算法分析----以一个最简单的例子为例题目：用递归的方法将整数按高到低位输出相应的数字字符.例如,对整数603,将输出3个数字6,0,3．源程序：#includeint main(void){      void fun(int);      int n;      scanf("%d",&n);      if(n      {       ]]></description><category></category></item><item><title><![CDATA[轩辕互动Exoweb笔试题（二）：小猪吃米]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5142247</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5142247</guid><author>zhhs06</author><pubDate>Wed, 06 Jan 2010 13:39:00 +0800</pubDate><description><![CDATA[1        小猪吃米题目：在国际象棋的棋盘上面有 NxN个格。每个格里面有若干的米粒。一只小猪站在1x1的格里，小猪每次只能向高位的列或行移动。小猪会吃掉所经过的格子里面所有的米粒。请编写程序计算小猪能吃掉的米粒的最大值。 假设小猪从(0,0)开始到棋盘上任一点(m,n)所能吃到的最多米粒数为f(m,n)，则f(m,n)满足下列关系式：f(m,n)=max{f(m,n-1),]]></description><category></category></item><item><title><![CDATA[轩辕互动Exoweb笔试题（一）]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/5142131</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/5142131</guid><author>zhhs06</author><pubDate>Wed, 06 Jan 2010 13:25:00 +0800</pubDate><description><![CDATA[1        定义一个数组中，若某个值出现的次数在一半以上，则为执行者。如下数组： A[8]={1，2，2，4，2，4，2，2} 由于2出现上午次数5次大于5/8>0.5， 所以2为数组A[8]的执行者。解法一：/***************************************************************** Function: Find the ]]></description><category></category></item><item><title><![CDATA[C++学习笔记1：构造函数和析构函数]]></title><link>https://blog.youkuaiyun.com/zhhs06/article/details/4286376</link><guid>https://blog.youkuaiyun.com/zhhs06/article/details/4286376</guid><author>zhhs06</author><pubDate>Sun, 21 Jun 2009 11:58:00 +0800</pubDate><description><![CDATA[     在C++语言中，构造函数主要起初始化对象的作用。当一个对象的生命周期结束时，我们应该去释放这个对象所占用的资源，这可以利用析构函数来完成。下面我们以几个具体的例子来深入讲解C++的构造函数和析构函数。  1        构造函数#include class point{      int x;      int y;public:      ]]></description><category></category></item></channel></rss>