<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>貳夢の弦 &#187; C++</title>
	<atom:link href="http://blog.frost.tw/tag/c/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.frost.tw</link>
	<description>夢醒之時，驚覺一切都是虛幻。前行吧！迷途者。</description>
	<lastBuildDate>Wed, 26 Oct 2011 13:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://blog.frost.tw/?pushpress=hub'/>
		<item>
		<title>C++ 重新開始~</title>
		<link>http://blog.frost.tw/code/poston-2011-05-16/postid-1182</link>
		<comments>http://blog.frost.tw/code/poston-2011-05-16/postid-1182#comments</comments>
		<pubDate>Mon, 16 May 2011 10:45:14 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[校園]]></category>
		<category><![CDATA[程式]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=1182</guid>
		<description><![CDATA[今天開始，我們這群考上學校的大學生可以說是「很悶」 而我又沒有筆電，只好默默的看書拉！ 幸好老媽昨晚有順便幫我拿書，不然今天把書看完就不知道該做什麼了！ 今日閱讀：「C++程式設計藝術」 高一那時有簡單學過，不過並沒有去深入研究。 頂多只做到寫一個 Socket Server/Client 的程度而已。 （雖然後來有簡單嘗試用 PHP Send Command 給 Socket Server 去控制 Winamp 的播放/暫停不過也只是小玩一下～） 這本書一開始就建立起物件導向觀念。 也因為是教材書，所以寫的真的很清楚。 （當一般書來看也是非常棒的呢！） 這邊就簡單寫個小程式小試身手好了！ （不過沒有編譯環境，就看哪位網友願意幫我試試結果摟！） 下面程式基本上都依照書中要求撰寫出高可讀性的程式碼。 （不過也有一些是自己習慣帶入的……） /** * Simple ATM * * A simple ATM system */ #include&#60;iostream&#62; #include&#60;string&#62; using &#8230; <a href="http://blog.frost.tw/code/poston-2011-05-16/postid-1182">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-11-30%2Fpostid-860&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新書入手！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-05-03%2Fpostid-519&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">懶散的一天！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-10-12%2Fpostid-762&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">精神力戰爭</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-06-17%2Fpostid-549&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">校園生活中難免會有的「笑話」</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天開始，我們這群考上學校的大學生可以說是「很悶」<br />
而我又沒有筆電，只好默默的看書拉！</p>
<p>幸好老媽昨晚有順便幫我拿書，不然今天把書看完就不知道該做什麼了！<br />
今日閱讀：「C++程式設計藝術」<br />
<span id="more-1182"></span><br />
高一那時有簡單學過，不過並沒有去深入研究。<br />
頂多只做到寫一個 Socket Server/Client 的程度而已。<br />
（雖然後來有簡單嘗試用 PHP Send Command 給 Socket Server 去控制 Winamp 的播放/暫停不過也只是小玩一下～）</p>
<p>這本書一開始就建立起物件導向觀念。<br />
也因為是教材書，所以寫的真的很清楚。<br />
（當一般書來看也是非常棒的呢！）</p>
<p>這邊就簡單寫個小程式小試身手好了！<br />
（不過沒有編譯環境，就看哪位網友願意幫我試試結果摟！）</p>
<p>下面程式基本上都依照書中要求撰寫出高可讀性的程式碼。<br />
（不過也有一些是自己習慣帶入的……）</p>
<pre class="brush: cpp">
/**
 * Simple ATM
 *
 * A simple ATM system
 */
#include&lt;iostream&gt;
#include&lt;string&gt;

using namespace std;

class SimpleATM
{

  public:
    void function SimpleATM(string initUsername) //Construct
    {
      setUsername(initUsername);
    }

    void function setUsername(string setUsername)
    {
      username = setUsername;
    }

    string function getUsername()
    {
      return username;
    }

    int function getBalance()
    {
        return balance;
    }

    void setBalance(int setBalance)
    {
      balance = setBalance;
    }

    boolean function saveMoney(int moneyPlus)
    {
      if(moneyPlus > 0){ //check is a valid value
        setBalance(getBalance() + moneyPlus);
        return true;
      }else{
        return false;
      }
    }

   boolean function cashOut(int moneyGet)
   {
      if(moneyGet > 0){ //check is a valid value
        setBalance(getBalance() - moneyGet);
        return true;
      }else{
        return false;
      }
   }

  void function displayBalance()
  {
    cout << "Hello, " << getUsername() << ".\nYour balance is " << getBalance() << endl;
  }
  private:
    int balance;
    string username;

}; //容易忘記的部份

void main()
{
  SimpleATM aotoki("Aotoki");
  aotoki.displayBalance();
  aotoki.saveMoney(100);
  aotoki.displayBalance();
  aotoki.cashOut(25);
  aotoki.displayBalance();
}
</pre>
<p>會寫這段是因為以前有網友問過，所以就拿來練習看看～<br />
（找個時間編譯看看能不能正常運作好了……）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-11-30%2Fpostid-860&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新書入手！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-05-03%2Fpostid-519&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">懶散的一天！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-10-12%2Fpostid-762&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">精神力戰爭</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-06-17%2Fpostid-549&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">校園生活中難免會有的「笑話」</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2011-05-16/postid-1182/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>程式上癮，難以控制</title>
		<link>http://blog.frost.tw/code/poston-2010-01-09/postid-316</link>
		<comments>http://blog.frost.tw/code/poston-2010-01-09/postid-316#comments</comments>
		<pubDate>Sat, 09 Jan 2010 11:03:08 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[程式]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=316</guid>
		<description><![CDATA[今天為什麼比平常還晚發文呢？ 主要是因為今天又把Rss Reader 叫出來思考拉！ 不過一旦專注起來，總是會忘記時間呢！ 今天改用了一個新的作法 &#8211; 使用 Curl 套件。 不過個人認為，一個程式沒有這麼大隻，卻要包三個加起來約1MB 的檔案真的很不划算。 不過呢，自己寫的 HTTP Client 還是無法克服亂碼問題。 當然，之前說的 Windows/Linux 差異已經成功處理了！ 那麼，問題在哪裡呢？ 在於「HTTP/1.1 與 HTTP/1.0」之上， 也許是 HTTP Server 問題，或者是某種設計吧！ 總之，改成 HTTP/1.0 去請求就沒有奇怪的東西出現拉！ 原本以為可以鬆一口氣，沒想到打開 xml 文件一看…… 亂碼還在，而HTTP回傳的檔頭資訊也還沒處理。 亂碼這個問題難倒我了！ 因為我根本不會處理，現在可是商透腦筋了呢！ 各位有學過 C++ 的朋友，可以的話請傳授一下技巧吧！ （不然我肯定會在那邊閉關到暴斃……）<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++ 重新開始~</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-08-15%2Fpostid-641&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">久違的程式</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++寫RSS閱讀器對我是個挑戰（Socket篇）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-09-22%2Fpostid-719&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">第一個 Java GUI 程式</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天為什麼比平常還晚發文呢？<br />
主要是因為今天又把Rss Reader 叫出來思考拉！<br />
不過一旦專注起來，總是會忘記時間呢！<br />
<span id="more-316"></span><br />
今天改用了一個新的作法 &#8211; 使用 Curl 套件。<br />
不過個人認為，一個程式沒有這麼大隻，卻要包三個加起來約1MB 的檔案真的很不划算。</p>
<p>不過呢，自己寫的 HTTP Client 還是無法克服亂碼問題。<br />
當然，之前說的 Windows/Linux 差異已經成功處理了！</p>
<p>那麼，問題在哪裡呢？<br />
在於「HTTP/1.1 與 HTTP/1.0」之上，<br />
也許是 HTTP Server 問題，或者是某種設計吧！<br />
總之，改成 HTTP/1.0 去請求就沒有奇怪的東西出現拉！</p>
<p>原本以為可以鬆一口氣，沒想到打開 xml 文件一看……<br />
亂碼還在，而HTTP回傳的檔頭資訊也還沒處理。</p>
<p>亂碼這個問題難倒我了！<br />
因為我根本不會處理，現在可是商透腦筋了呢！</p>
<p>各位有學過 C++ 的朋友，可以的話請傳授一下技巧吧！<br />
（不然我肯定會在那邊閉關到暴斃……）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++ 重新開始~</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-08-15%2Fpostid-641&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">久違的程式</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++寫RSS閱讀器對我是個挑戰（Socket篇）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-09-22%2Fpostid-719&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">第一個 Java GUI 程式</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2010-01-09/postid-316/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rss Reader 的障礙 &#8211; 作業系統差異</title>
		<link>http://blog.frost.tw/code/poston-2010-01-05/postid-308</link>
		<comments>http://blog.frost.tw/code/poston-2010-01-05/postid-308#comments</comments>
		<pubDate>Tue, 05 Jan 2010 10:54:54 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[閱讀]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=308</guid>
		<description><![CDATA[昨天終於把 HTTP Request 的問題都處理的差不多。 而現在，最終問題「作業系統差異」顯現出來拉！ 經過昨天的「激戰」終於得出 Windows 與 Linux 在中文字上的障礙這個結果。 雖然目前不能確定是 winsock2 的問題，還是因為 Windows 與 Linux 的問題。 不過能確定的就是在 Windows 下載 Linux 伺服器上的資料，會有中文亂碼問題。 更妙的是，亂碼的一定會是 「中文亂碼斷行1000斷行亂碼中文」的構造。 目前正在嘗試確認是否為 winsock2 的問題， 如果確實如此，就會使用傳統的 socket 方法去運行。 也因此，在原始階段的程式是可以被 Linux 系統支援。 不過相較之下，個人還是認為 Windows 內建的支援太多，讓我沒辦法放手去做 Linux 支援。 畢竟現在我的時間太少，沒辦法好好研究Linux相容。 也許哪一天，我做出心得，就可以做Linux版本。 &#8230; <a href="http://blog.frost.tw/code/poston-2010-01-05/postid-308">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++寫RSS閱讀器對我是個挑戰（Socket篇）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">2010新番開播，期待中～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++ 重新開始~</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">程式上癮，難以控制</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨天終於把 HTTP Request 的問題都處理的差不多。<br />
而現在，最終問題「作業系統差異」顯現出來拉！<br />
經過昨天的「激戰」終於得出 Windows 與 Linux 在中文字上的障礙這個結果。</p>
<p><span id="more-308"></span><br />
雖然目前不能確定是 winsock2 的問題，還是因為 Windows 與 Linux 的問題。<br />
不過能確定的就是在 Windows 下載 Linux 伺服器上的資料，會有中文亂碼問題。</p>
<p>更妙的是，亂碼的一定會是 「中文亂碼斷行1000斷行亂碼中文」的構造。<br />
目前正在嘗試確認是否為 winsock2 的問題，<br />
如果確實如此，就會使用傳統的 socket 方法去運行。</p>
<p>也因此，在原始階段的程式是可以被 Linux 系統支援。<br />
不過相較之下，個人還是認為 Windows 內建的支援太多，讓我沒辦法放手去做 Linux 支援。</p>
<p>畢竟現在我的時間太少，沒辦法好好研究Linux相容。<br />
也許哪一天，我做出心得，就可以做Linux版本。</p>
<p>不過最重要的是「我完成時，有人要下載嗎？」<br />
希望到時候我不會太失望，也希望各位讀者「支持」</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++寫RSS閱讀器對我是個挑戰（Socket篇）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">2010新番開播，期待中～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++ 重新開始~</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">程式上癮，難以控制</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2010-01-05/postid-308/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2010新番開播，期待中～</title>
		<link>http://blog.frost.tw/life/poston-2010-01-04/postid-306</link>
		<comments>http://blog.frost.tw/life/poston-2010-01-04/postid-306#comments</comments>
		<pubDate>Mon, 04 Jan 2010 10:57:51 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[生活雜記]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[動漫]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=306</guid>
		<description><![CDATA[今天去找了一下詳細列表，發現我想看的都集中在週四。 1/7 日開播的 神影之狼 是目前期待最高的！ 而海賊王的劇場版似乎在 2009 年 12 月撥完，有空要去找找看。 今年其實對新番的期待度不高，不過突然發現自己有「區別障礙」 2010 年 「春」 還是 「冬」 才是正確的呢？ 依照陽曆的算法 一月至三月應該是 「春」 但是網路上資料卻都用 「冬」 這可讓弦查資料時非常頭痛呢！ 既然期待度比較高的幾部都在 1/7 播放，這幾天我就只好先忍耐拉！ 不過今天想看鋼鍊FA的時候，卻發現都沒有人上傳。 個人猜測是元旦放假沒有更新，或者大家放假忘記了！ 今天大致上繼續自己的 RSS Reader 的 Develope 個人希望今天能夠把編碼問題以及抓取資料的問題處理完畢～ 希望各位動漫愛好者有個不錯的新年～ 弦寒假會繼續更新網誌，也會增加內容量（圖片當然不會少～）<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Rss Reader 的障礙 – 作業系統差異</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-09-15%2Fpostid-711&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">漫研社．新生。</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++寫RSS閱讀器對我是個挑戰（Socket篇）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-07%2Fpostid-312&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">神隱之狼、無頭騎士異聞錄開播～</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天去找了一下詳細列表，發現我想看的都集中在週四。<br />
1/7 日開播的 神影之狼 是目前期待最高的！<br />
而海賊王的劇場版似乎在 2009 年 12 月撥完，有空要去找找看。<br />
<span id="more-306"></span><br />
今年其實對新番的期待度不高，不過突然發現自己有「區別障礙」</p>
<p>2010 年 「春」 還是 「冬」 才是正確的呢？<br />
依照陽曆的算法 一月至三月應該是 「春」 但是網路上資料卻都用 「冬」<br />
這可讓弦查資料時非常頭痛呢！</p>
<p>既然期待度比較高的幾部都在 1/7 播放，這幾天我就只好先忍耐拉！<br />
不過今天想看鋼鍊FA的時候，卻發現都沒有人上傳。</p>
<p>個人猜測是元旦放假沒有更新，或者大家放假忘記了！<br />
今天大致上繼續自己的 RSS Reader 的 Develope<br />
個人希望今天能夠把編碼問題以及抓取資料的問題處理完畢～</p>
<p>希望各位動漫愛好者有個不錯的新年～<br />
弦寒假會繼續更新網誌，也會增加內容量（圖片當然不會少～）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Rss Reader 的障礙 – 作業系統差異</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-09-15%2Fpostid-711&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">漫研社．新生。</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++寫RSS閱讀器對我是個挑戰（Socket篇）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-07%2Fpostid-312&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">神隱之狼、無頭騎士異聞錄開播～</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/life/poston-2010-01-04/postid-306/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C++寫RSS閱讀器對我是個挑戰（Socket篇）</title>
		<link>http://blog.frost.tw/code/poston-2010-01-03/postid-303</link>
		<comments>http://blog.frost.tw/code/poston-2010-01-03/postid-303#comments</comments>
		<pubDate>Sun, 03 Jan 2010 10:37:50 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[閱讀]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=303</guid>
		<description><![CDATA[前幾天，弦晃阿晃～ 看了不少小程式、軟體，不自覺手癢了起來。 於是決定要自己幫網製作「RSS閱讀器」 可惜，一切並非如此的順利。 今天下午，弦終於等到了台灣深藍學生論壇版主的「提示」 最後發現，應該具備的技術，我已經「準備完畢」 接著經過幾次的嘗試之後，終於漸漸上手拉！ 一開始，用上次寫來控制 Winamp 的小軟體來做測試。 後來發現沒有接收功能，怎麼改良呢？ 畢竟弦對 C++ 一點都不熟，只有PHP建立的基礎和入門通過的能力。 接著在網路上找到一段可行的程式碼，不過似乎是討論版問題（變成一行） 經過整理與「調整」終於能夠收到「信息」拉！ 不過，收到什麼訊息呢？ "400 Bad Request" 第一次令人興奮，之後數十次就讓我頭昏了！ 結果，各位知道弦是如何收到正確的訊息嗎？ 答案是：「在討論版上發現最後一行要 \n\n 而不是\n 就可以了！」 天阿！這個答案是否太「搞笑」了？ 不過，這也確定一個RSS閱讀器要寫出來，必須會很多東西呢！ 不過成功發出請求獲取訊息，已經事件好事拉！ 接下來，要面臨兩個難題： 1. UTF8 編碼處理 2. 如何接收到全部的資訊？ 目前弦只有辦法輸出一部分，而無法完全輸出。 真希望 C++ 像 PHP &#8230; <a href="http://blog.frost.tw/code/poston-2010-01-03/postid-303">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Rss Reader 的障礙 – 作業系統差異</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">2010新番開播，期待中～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">程式上癮，難以控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++ 重新開始~</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>前幾天，弦晃阿晃～<br />
看了不少小程式、軟體，不自覺手癢了起來。<br />
於是決定要自己幫網製作「RSS閱讀器」<br />
可惜，一切並非如此的順利。<br />
<span id="more-303"></span><br />
今天下午，弦終於等到了台灣深藍學生論壇版主的「提示」<br />
最後發現，應該具備的技術，我已經「準備完畢」<br />
接著經過幾次的嘗試之後，終於漸漸上手拉！</p>
<p>一開始，用上次寫來控制 Winamp 的小軟體來做測試。<br />
後來發現沒有接收功能，怎麼改良呢？</p>
<p>畢竟弦對 C++ 一點都不熟，只有PHP建立的基礎和入門通過的能力。<br />
接著在網路上找到一段可行的程式碼，不過似乎是討論版問題（變成一行）</p>
<p>經過整理與「調整」終於能夠收到「信息」拉！<br />
不過，收到什麼訊息呢？<br />
"400 Bad Request"<br />
第一次令人興奮，之後數十次就讓我頭昏了！</p>
<p>結果，各位知道弦是如何收到正確的訊息嗎？<br />
答案是：「在討論版上發現最後一行要 \n\n 而不是\n 就可以了！」</p>
<p>天阿！這個答案是否太「搞笑」了？<br />
不過，這也確定一個RSS閱讀器要寫出來，必須會很多東西呢！</p>
<p>不過成功發出請求獲取訊息，已經事件好事拉！<br />
接下來，要面臨兩個難題：<br />
1. UTF8 編碼處理<br />
2. 如何接收到全部的資訊？</p>
<p>目前弦只有辦法輸出一部分，而無法完全輸出。<br />
真希望 C++ 像 PHP 一樣可以輕鬆定義字串呢！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-05%2Fpostid-308&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Rss Reader 的障礙 – 作業系統差異</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-01-04%2Fpostid-306&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">2010新番開播，期待中～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-09%2Fpostid-316&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">程式上癮，難以控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-05-16%2Fpostid-1182&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-01-03%2Fpostid-303">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">C++ 重新開始~</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2010-01-03/postid-303/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

