<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/hannsoft" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/hannsoft" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 24 Mar 2009 00:55:00 GMT</lastBuildDate><title>TONY的专栏</title><description>巨烂的程序员</description><link>http://blog.csdn.net/hannsoft/</link><item><title>VC.net  字符串转换成UTF-8形式</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/24/4018858.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/4018858.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/4018858.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4018858</trackback:ping><description>&lt;br /&gt;using namespace System;
using namespace System::Text;
void PrintCountsAndBytes( array^chars, Encoding^ enc );
void PrintHexBytes( array^bytes );
int main()
{
   
   // The characters to encode:
   //    Latin Small Letter Z (U+007A)
   //    Latin Small Letter A (U+0061)
   //    Combining Breve (U+0306)
   //    Latin Small Letter AE With Acute (U+01FD)
   //    Greek Small Letter Beta (U+03B2)
   //    a high-surrogate value (U+D8FF)
   //    a low-surrogate val&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/4018858.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 24 Mar 2009 08:55:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/24/4018858.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/24/4018858.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>求指定范围内的所有素数</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/20/4009097.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/4009097.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/4009097.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4009097</trackback:ping><description>/*  Name: 求制定范围内的所有素数   Copyright: tonyee   Author: tonyee   Date: 20-03-09 18:50  Description: C++ 练习题  */#include using namespace std;class PRIMENUM {  int data[25];  int span1, span2;  int num;public:  PRIMENUM(int n1,int n2)  {    num = 0;    span1 = n1, span2 = n2;   }  int isprime(int x);  void process()  {    for(int i = span1; i&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/4009097.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 21 Mar 2009 04:28:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/20/4009097.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/20/4009097.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>超长数列中n个整数排序</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/20/4009011.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/4009011.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/4009011.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4009011</trackback:ping><description>&lt;br /&gt; /*
  Name: 超长数列中n个整数排序 
  Copyright: tonyee 
  Author: tonyee 
  Date: 20-03-09 18:50
  Description: C++ 练习题  
*/
#include 

using namespace std;

class LIST
{
  int size;
  int *arr;
public: 
  LIST(int a[], int len)         // 构造函数，用len初始化size动态分配数组存储空间 arr 指向该存储空间 
  {
    size = len;
    arr = new int[len];
    for(int i=0;i&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/4009011.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 21 Mar 2009 03:55:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/20/4009011.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/20/4009011.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>分数相加-</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/19/4006055.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/4006055.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/4006055.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4006055</trackback:ping><description>&lt;br /&gt;/*
  Name: 分数运算 
  Copyright: tonyee 
  Author: tonyee 
  Date: 19-03-09 22:23
  Description: C++ 练习题  
*/
#include 
#include 

using namespace std;

// 分数相加类 
class Fract
{
  int num; //分子 
  int den;  // 分母
public:
  Fract(int a = 0, int b = 1)
  {
    num = a, den = b; 
  } 
  int gcd(int m, int n)
  {
    int r;
    if(m&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/4006055.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 20 Mar 2009 07:07:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/19/4006055.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/19/4006055.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>Game Lobby!</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/15/3993004.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/3993004.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/3993004.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3993004</trackback:ping><description>&lt;br /&gt;/*
Name: Game Lobby
Copyright: tonyee
Author: tonyee
Date: 15-03-09 20:44
Description:  code for study
*/

#include 
#include 

using namespace std;

class Player
{
public:
	Player(const string&amp; name = &quot;&quot;) :m_Name(name),m_pNext(0){}
	string GetName() const { return m_Name; }
	Player* GetNext() const { return m_pNext; }
	void SetNext (Player* next) { m_pNext = next; }
private:
	string m_Name;
	Player* m_pNext; // 指向列表中下一个玩家的指针 
};

class Lobby
{
&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/3993004.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 16 Mar 2009 06:54:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/15/3993004.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/15/3993004.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>电子宠物！（简单）</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/14/3989131.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/3989131.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/3989131.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3989131</trackback:ping><description>&lt;br /&gt;// critter caretaker
#include 

using namespace std;

class Critter
{
public:
	Critter(int hunger = 0, int boredom = 0);

	void Talk();
	void Eat(int food = 4);
	void Play(int fun = 4);

private:
	int m_Hunger;
	int m_Boredom;

	int GetMood() const;
	void PassTime(int time = 1);
};

Critter::Critter(int hunger, int boredom)
:m_Hunger(hunger), m_Boredom(boredom)
{}

int inline Critter::GetMood() const
{
	return (m_Hunger + m_Boredom);
}

void Critter&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/3989131.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 14 Mar 2009 08:31:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/14/3989131.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/14/3989131.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>井字游戏 指针版</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/12/3985799.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/3985799.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/3985799.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3985799</trackback:ping><description>&lt;br /&gt;// 指针版&lt;br /&gt;// Tic-Tac-Toe 2.0
// Plays the game of tic-tac-toe against a human opponent
// Uses pointers instead of refernces for function parameters

#include 
#include 
#include 
#include 

using namespace std;

// global constants
const char X = 'X';
const char O = 'O';
const char EMPTY = ' ';
const char TIE = 'T';
const char NO_ONE = 'N';

// function prototypes
void instructions();
char askYesNo(string question);
int askNumber&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/3985799.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 13 Mar 2009 07:59:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/12/3985799.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/12/3985799.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>井字游戏！</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/12/3985676.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/3985676.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/3985676.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3985676</trackback:ping><description>&lt;br /&gt;// Tic-Tac-Toe
// Plays the game of tic-tac-toe against a human opponent

#include 
#include 
#include 
#include 

using namespace std;

// global constants
const char X = 'X';
const char O = 'O';
const char EMPTY = ' ';
const char TIE = 'T';
const char NO_ONE = 'N';

// function prototypes
void instructions();
char askYesNo(string question);
int askNumber(string question, int high, int low = 0);
char humanPiece();
char opponent(ch&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/3985676.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 13 Mar 2009 07:11:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/12/3985676.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/12/3985676.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>Hangman!!!</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/10/3977858.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/3977858.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/3977858.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3977858</trackback:ping><description>&lt;br /&gt;// Hangman

#include 
#include 
#include 
#include 
#include 
#include 
#include 

using namespace std;

int main ()
{
	// setup
	const int MAX_WRONG = 8;
	
	vector words;
	words.push_back(&quot;GUESS&quot;);
	words.push_back(&quot;HANGMAN&quot;);
	words.push_back(&quot;DIFFICULT&quot;);
	
	srand(time(0));
	random_shuffle(words.begin(),words.end());
	const string THE_WORD = words[0];
	int wrong = 0;
	string soFar(THE_WORD.siz&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/3977858.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 11 Mar 2009 05:52:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/10/3977858.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/10/3977858.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item><item><title>Guess My Word</title><link>http://blog.csdn.net/hannsoft/archive/2009/03/09/3974813.aspx</link><wfw:comment>http://blog.csdn.net/hannsoft/comments/3974813.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hannsoft/comments/commentRss/3974813.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3974813</trackback:ping><description>&lt;br /&gt;// Guess My Word

#include 
#include 
#include 
#include 

using namespace std;

int main ()
{
	enum fields {WORD,HINT,NUM_FIELDS};
	const int NUM_WORDS = 5;
	const string WORDS[NUM_WORDS][NUM_FIELDS] =
	{
		{&quot;wall&quot;,&quot;Do you fell you are banging your head againest something?&quot;},
		{&quot;glasses&quot;,&quot;These might help you see the answer.&quot;},
		{&quot;labored&quot;,&quot;Going slowly,is it?&quot;},
		{&quot;persistent&quot;,&quot;Keep at it&quot;},
		{&quot;jumble&quot;,&quot;It's what the game si all ab&lt;img src =&quot;http://blog.csdn.net/hannsoft/aggbug/3974813.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 10 Mar 2009 07:11:00 +0800</pubDate><author>Csdn 首席才鸟</author><comments>http://blog.csdn.net/hannsoft/archive/2009/03/09/3974813.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hannsoft/archive/2009/03/09/3974813.aspx</guid><dc:creator>Csdn 首席才鸟</dc:creator></item></channel></rss>
