﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-嵌入式-赵均泽</title><link>http://www.cppblog.com/JunZe/</link><description /><language>zh-cn</language><lastBuildDate>Thu, 16 Apr 2026 04:16:01 GMT</lastBuildDate><pubDate>Thu, 16 Apr 2026 04:16:01 GMT</pubDate><ttl>60</ttl><item><title>向那些向全副武装的以军投掷石块的青年致敬</title><link>http://www.cppblog.com/JunZe/archive/2008/12/30/70816.html</link><dc:creator>赵均泽</dc:creator><author>赵均泽</author><pubDate>Tue, 30 Dec 2008 15:08:00 GMT</pubDate><guid>http://www.cppblog.com/JunZe/archive/2008/12/30/70816.html</guid><wfw:comment>http://www.cppblog.com/JunZe/comments/70816.html</wfw:comment><comments>http://www.cppblog.com/JunZe/archive/2008/12/30/70816.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/JunZe/comments/commentRss/70816.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/JunZe/services/trackbacks/70816.html</trackback:ping><description><![CDATA[<dl>
<dt>
<p><img height=423 alt="" src="http://www.cppblog.com/images/cppblog_com/junze/5.jpg" width=600 border=0><br><br><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">不管巴以谁对谁错,我们都不得不向这些手无寸铁的青年致敬。他们不曾拥有梦幻式的童年和青少年，迎接他们的是残酷的现实：每天生与死的考验。<br>但愿身处异乡的中华子民，居安思危，不论过去还是将来，面对敌人，我们都要拥有勇气，以各种方式向敌人投掷&#8220;石块&#8221;</span></p>
</dt></dl>
<img src ="http://www.cppblog.com/JunZe/aggbug/70816.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/JunZe/" target="_blank">赵均泽</a> 2008-12-30 23:08 <a href="http://www.cppblog.com/JunZe/archive/2008/12/30/70816.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Topcoder -Tournament -2001Round1  SquareDigits() </title><link>http://www.cppblog.com/JunZe/archive/2008/11/30/68218.html</link><dc:creator>赵均泽</dc:creator><author>赵均泽</author><pubDate>Sun, 30 Nov 2008 06:26:00 GMT</pubDate><guid>http://www.cppblog.com/JunZe/archive/2008/11/30/68218.html</guid><wfw:comment>http://www.cppblog.com/JunZe/comments/68218.html</wfw:comment><comments>http://www.cppblog.com/JunZe/archive/2008/11/30/68218.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/JunZe/comments/commentRss/68218.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/JunZe/services/trackbacks/68218.html</trackback:ping><description><![CDATA[<p style="FONT-SIZE: 10pt">Problem Statement</p>
<p style="FONT-SIZE: 10pt">***Note:&nbsp; Please keep programs under 7000 characters in length.&nbsp; Thank you</p>
<p style="FONT-SIZE: 10pt"><br>Class Name: SquareDigits<br>Method Name: smallestResult<br>Parameters: int<br>Returns: int</p>
<p style="FONT-SIZE: 10pt">Define the function S(x) as the sum of the squares of the digits of x.&nbsp;&nbsp; <br>For example: S(3)=3*3=9 and S(230)=2*2+3*3+0*0=13.</p>
<p style="FONT-SIZE: 10pt">Define the set T(x) to be the set of unique numbers that are produced by<br>repeatedly applying S to x.&nbsp; That is: S(x), S(S(x)), S(S(S(x))), etc... <br>For example, repeatedly applying S to 37:<br>S(37)=3*3+7*7=58.&nbsp; <br>S(58)=5*5+8*8=89.<br>S(89)=145.<br>S(145)=42. <br>S(42)=20.<br>S(20)=4.<br>S(4)=16.<br>S(16)=37. <br>Note this sequence will repeat so we can stop calculating now and: <br>T(37)={58,89,145,42,20,4,16,37}.<br>However, note T(x) may not necessarily contain x.&nbsp; </p>
<p style="FONT-SIZE: 10pt">Implement a class SquareDigits, which contains a method smallestResult.&nbsp; The<br>method takes an int, n, as a parameter and returns the smallest int, x, such<br>that T(x) contains n.</p>
<p style="FONT-SIZE: 10pt">The method signature is (be sure your method is public): <br>int smallestResult(int n); </p>
<p style="FONT-SIZE: 10pt">TopCoder will ensure n is non-negative and is between 0 and 199 inclusive.</p>
<p style="FONT-SIZE: 10pt">Examples:<br>If n=0: S(0) = 0, so T(0)={0}, so the method should return 0.</p>
<p style="FONT-SIZE: 10pt">If n=2: T(0) through T(10) do not contain the value 2.&nbsp; If x=11, however:<br>S(11)=1*1+1*1=2, so T(11) contains 2, and the method should return 11.</p>
<p style="FONT-SIZE: 10pt">If n=10: T(0) through T(6) do not contain 10.&nbsp; If x=7:<br>S(7)=49.<br>S(49)=97.<br>S(97)=130.<br>S(130)=10.<br>S(10)=1.<br>and it starts to repeat... <br>so T(7) is {49,97,130,10,1}, which contains 10, and the method should return 7.</p>
<p style="FONT-SIZE: 10pt">n=1 -&gt; x=1 <br>n=19 -&gt; x=133<br>n=85 -&gt; x=5<br>n=112 -&gt; x=2666<br>Definition<br>????<br>Class:<br>SquareDigits<br>Method:<br>smallestResult<br>Parameters:<br>int<br>Returns:<br>int<br>Method signature:<br>int smallestResult(int param0)<br>(be sure your method is public)<br><br>This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2003, TopCoder, Inc. All rights reserved.</p>
<br>
<img src ="http://www.cppblog.com/JunZe/aggbug/68218.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/JunZe/" target="_blank">赵均泽</a> 2008-11-30 14:26 <a href="http://www.cppblog.com/JunZe/archive/2008/11/30/68218.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Topcoder -Tournament -2001Round1 得分249.15/250</title><link>http://www.cppblog.com/JunZe/archive/2008/11/30/68216.html</link><dc:creator>赵均泽</dc:creator><author>赵均泽</author><pubDate>Sun, 30 Nov 2008 04:42:00 GMT</pubDate><guid>http://www.cppblog.com/JunZe/archive/2008/11/30/68216.html</guid><wfw:comment>http://www.cppblog.com/JunZe/comments/68216.html</wfw:comment><comments>http://www.cppblog.com/JunZe/archive/2008/11/30/68216.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cppblog.com/JunZe/comments/commentRss/68216.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/JunZe/services/trackbacks/68216.html</trackback:ping><description><![CDATA[

<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">TopCoder has decided to automate the process of assigning problem difficulty<br>levels to problems.&#160; TopCoder developers have concluded that problem difficulty<br>is related only to the Average Word Length of Words in the problem statement:</p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">If the Average Word Length is less than or equal to 3,&#160; the problem is a 250<br>point problem.<br>If the Average Word Length is equal to 4 or 5, the problem is a 500 point<br>problem.<br>If the Average Word Length is greater than or equal to 6, the problem is a 1000<br>point problem.<br>&#160;<br>Definitions:<br>Token - a set of characters bound on either side by spaces, the beginning of<br>the input String parameter or the end of the input String parameter.<br>Word - a Token that contains only letters (a-z or A-Z) and may end with a<br>single period. A Word must have at least one letter.<br>Word Length - the number of letters in a Word. (NOTE: a period is NOT a letter)</p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The following are Words :<br>"ab",&#160; "ab."</p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The following are not Words :<br>"ab..", "a.b", ".ab", "a.b.", "a2b.", "."</p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Average Word Length - the sum of the Word Lengths of every Word in the problem<br>statement divided by the number of Words in the problem statement.&#160; The<br>division is integer division. If the number of Words is 0, the Average Word<br>Length is 0.<br>&#160;<br>Implement a class HowEasy, which contains a method pointVal.&#160; The method takes<br>a String as a parameter that is the problem statement and returns an int that<br>is the point value of the problem (250, 500, or 1000). The problem statement<br>should be processed from left to right.<br>&#160;<br>Here is the method signature (be sure your method is public):<br>int pointVal(String problemStatement);<br>&#160;<br>problemStatement is a String containing between 1 and 50 letters, numbers,<br>spaces, or periods.&#160; TopCoder will ensure the input is valid.<br>&#160;<br>Examples:<br>&#160;<br>If problemStatement="This is a problem statement", the Average Word Length is<br>23/5=4, so the method should return 500.<br>If problemStatement="523hi.", there are no Words, so the Average Word Length is<br>0, and the method should return 250.<br>If problemStatement="Implement a class H5 which contains some method." the<br>Average Word Length is 38/7=5 and the method should return 500.<br>If problemStatement=" no9 . wor7ds he8re. hj.." the Average Word Length is 0,<br>and the method should return 250.<br>Definition</p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Class:<br>HowEasy<br>Method:<br>pointVal<br>Parameters:<br>string<br>Returns:<br>int<br>Method signature:<br>int pointVal(string param0)<br>(be sure your method is public)</p>
<p><span style="FONT-SIZE: 10pt">This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2003, TopCoder, Inc. All rights reserved.<br></span></p>
<div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: rgb(204, 204, 204); width: 98%; word-break: break-all; padding-top: 4px; background-color: rgb(238, 238, 238); "><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align="top"><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">&#160;HowEasy<br><img id="Codehighlighter1_14_147_Open_Image" onclick="this.style.display='none'; Codehighlighter1_14_147_Open_Text.style.display='none'; Codehighlighter1_14_147_Closed_Image.style.display='inline'; Codehighlighter1_14_147_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_14_147_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_14_147_Closed_Text.style.display='none'; Codehighlighter1_14_147_Open_Image.style.display='inline'; Codehighlighter1_14_147_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_14_147_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_14_147_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top"></span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000">:<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;HowEasy::nextToken(</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&#160;pChar,</span><span style="COLOR: #0000ff">bool</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">bInvalidToken,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">idx);<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top"></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">:&#160;&#160;&#160;&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;HowEasy();<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;pointVal(</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&#160;param0);<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top">}</span></span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align="top">HowEasy::HowEasy()<br><img id="Codehighlighter1_169_171_Open_Image" onclick="this.style.display='none'; Codehighlighter1_169_171_Open_Text.style.display='none'; Codehighlighter1_169_171_Closed_Image.style.display='inline'; Codehighlighter1_169_171_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_169_171_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_169_171_Closed_Text.style.display='none'; Codehighlighter1_169_171_Open_Image.style.display='inline'; Codehighlighter1_169_171_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_169_171_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_169_171_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top">}</span></span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align="top"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align="top"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;HowEasy::nextToken(</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&#160;pChar,</span><span style="COLOR: #0000ff">bool</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">bInvalidToken,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">idx)<br><img id="Codehighlighter1_241_726_Open_Image" onclick="this.style.display='none'; Codehighlighter1_241_726_Open_Text.style.display='none'; Codehighlighter1_241_726_Closed_Image.style.display='inline'; Codehighlighter1_241_726_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_241_726_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_241_726_Closed_Text.style.display='none'; Codehighlighter1_241_726_Open_Image.style.display='inline'; Codehighlighter1_241_726_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_241_726_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_241_726_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;result&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;bInvalidToken&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(&#160;pChar[idx]&#160;</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;)<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;idx&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;idx</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(pChar[idx]&#160;</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">&amp;&amp;</span><span style="COLOR: #000000">&#160;pChar[idx]&#160;</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">\0</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">)<br><img id="Codehighlighter1_379_675_Open_Image" onclick="this.style.display='none'; Codehighlighter1_379_675_Open_Text.style.display='none'; Codehighlighter1_379_675_Closed_Image.style.display='inline'; Codehighlighter1_379_675_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_379_675_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_379_675_Closed_Text.style.display='none'; Codehighlighter1_379_675_Open_Image.style.display='inline'; Codehighlighter1_379_675_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_379_675_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_379_675_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;(&#160;</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">a</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">pChar[idx]&#160;</span><span style="COLOR: #000000">&amp;&amp;</span><span style="COLOR: #000000">&#160;pChar[idx]&#160;</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">z</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;)<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #000000">||</span><span style="COLOR: #000000">&#160;(</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">A</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">&#160;pChar[idx]&#160;</span><span style="COLOR: #000000">&amp;&amp;</span><span style="COLOR: #000000">&#160;pChar[idx]&#160;</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">Z</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">)&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #000000">||</span><span style="COLOR: #000000">&#160;(</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">&#160;pChar[idx]&#160;</span><span style="COLOR: #000000">&amp;&amp;</span><span style="COLOR: #000000">&#160;pChar[idx</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">]&#160;</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">\0</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">)&#160;)<br><img id="Codehighlighter1_530_534_Open_Image" onclick="this.style.display='none'; Codehighlighter1_530_534_Open_Text.style.display='none'; Codehighlighter1_530_534_Closed_Image.style.display='inline'; Codehighlighter1_530_534_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_530_534_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_530_534_Closed_Text.style.display='none'; Codehighlighter1_530_534_Open_Image.style.display='inline'; Codehighlighter1_530_534_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_530_534_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_530_534_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br><img id="Codehighlighter1_545_592_Open_Image" onclick="this.style.display='none'; Codehighlighter1_545_592_Open_Text.style.display='none'; Codehighlighter1_545_592_Closed_Image.style.display='inline'; Codehighlighter1_545_592_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_545_592_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_545_592_Closed_Text.style.display='none'; Codehighlighter1_545_592_Open_Image.style.display='inline'; Codehighlighter1_545_592_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_545_592_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_545_592_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;result&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;bInvalidToken&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">bInvalidToken&#160;)<br><img id="Codehighlighter1_619_636_Open_Image" onclick="this.style.display='none'; Codehighlighter1_619_636_Open_Text.style.display='none'; Codehighlighter1_619_636_Closed_Image.style.display='inline'; Codehighlighter1_619_636_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_619_636_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_619_636_Closed_Text.style.display='none'; Codehighlighter1_619_636_Open_Image.style.display='inline'; Codehighlighter1_619_636_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_619_636_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_619_636_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;result</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;pChar[idx]&#160;</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">\0</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">)<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;idx</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;pChar[idx]&#160;</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;)<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;idx</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&#160;result;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top">}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align="top"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;HowEasy::pointVal(</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&#160;param0)<br><img id="Codehighlighter1_765_1324_Open_Image" onclick="this.style.display='none'; Codehighlighter1_765_1324_Open_Text.style.display='none'; Codehighlighter1_765_1324_Closed_Image.style.display='inline'; Codehighlighter1_765_1324_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_765_1324_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_765_1324_Closed_Text.style.display='none'; Codehighlighter1_765_1324_Open_Image.style.display='inline'; Codehighlighter1_765_1324_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_765_1324_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_765_1324_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;nTotalChars&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;nTotoalWords&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&#160;idx&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">bool</span><span style="COLOR: #000000">&#160;bInvalidToken&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(&#160;param0[idx]&#160;</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">\0</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">&#160;)<br><img id="Codehighlighter1_891_1045_Open_Image" onclick="this.style.display='none'; Codehighlighter1_891_1045_Open_Text.style.display='none'; Codehighlighter1_891_1045_Closed_Image.style.display='inline'; Codehighlighter1_891_1045_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_891_1045_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_891_1045_Closed_Text.style.display='none'; Codehighlighter1_891_1045_Open_Image.style.display='inline'; Codehighlighter1_891_1045_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_891_1045_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_891_1045_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;nTotalChars&#160;</span><span style="COLOR: #000000">+=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">nextToken(param0,bInvalidToken,idx);<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">bInvalidToken&#160;)<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;nTotoalWords</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160; &#160; &#160; &#160;/*</span><span style="COLOR: #0000ff"></span></span></span></div><div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: rgb(204, 204, 204); width: 98%; word-break: break-all; padding-top: 4px; background-color: rgb(238, 238, 238); "><span id="Codehighlighter1_765_1324_Open_Text"><span id="Codehighlighter1_891_1045_Open_Text"><span style="COLOR: #0000ff">&#160;&#160; &#160; &#160; &#160; &#160; else</span><span style="COLOR: #000000"><br><img id="Codehighlighter1_1007_1042_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1007_1042_Open_Text.style.display='none'; Codehighlighter1_1007_1042_Closed_Image.style.display='inline'; Codehighlighter1_1007_1042_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_1007_1042_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1007_1042_Closed_Text.style.display='none'; Codehighlighter1_1007_1042_Open_Image.style.display='inline'; Codehighlighter1_1007_1042_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160; &#160; &#160; &#160;</span><span id="Codehighlighter1_1007_1042_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160; &#160; &#160; &#160; &#160; &#160;nTotoalWords&#160;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"></span></span></span></div><div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: rgb(204, 204, 204); width: 98%; word-break: break-all; padding-top: 4px; background-color: rgb(238, 238, 238); "><span id="Codehighlighter1_765_1324_Open_Text"><span id="Codehighlighter1_891_1045_Open_Text"><span style="COLOR: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span>&#160;&#160;*/<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;nTotoalWords&#160;</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">&#160;)<br><img id="Codehighlighter1_1075_1092_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1075_1092_Open_Text.style.display='none'; Codehighlighter1_1075_1092_Closed_Image.style.display='inline'; Codehighlighter1_1075_1092_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_1075_1092_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1075_1092_Closed_Text.style.display='none'; Codehighlighter1_1075_1092_Open_Image.style.display='inline'; Codehighlighter1_1075_1092_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_1075_1092_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_1075_1092_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">250</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;nTotalChars</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">nTotoalWords&#160;</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">3</span><span style="COLOR: #000000">&#160;)<br><img id="Codehighlighter1_1136_1153_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1136_1153_Open_Text.style.display='none'; Codehighlighter1_1136_1153_Closed_Image.style.display='inline'; Codehighlighter1_1136_1153_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_1136_1153_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1136_1153_Closed_Text.style.display='none'; Codehighlighter1_1136_1153_Open_Image.style.display='inline'; Codehighlighter1_1136_1153_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_1136_1153_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_1136_1153_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">250</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;nTotalChars</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">nTotoalWords&#160;</span><span style="COLOR: #000000">>=</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">&#160;&amp;&amp;</span><span style="COLOR: #000000">&#160;nTotalChars</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">nTotoalWords&#160;</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">5</span><span style="COLOR: #000000">&#160;)<br><img id="Codehighlighter1_1229_1246_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1229_1246_Open_Text.style.display='none'; Codehighlighter1_1229_1246_Closed_Image.style.display='inline'; Codehighlighter1_1229_1246_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_1229_1246_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1229_1246_Closed_Text.style.display='none'; Codehighlighter1_1229_1246_Open_Image.style.display='inline'; Codehighlighter1_1229_1246_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_1229_1246_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_1229_1246_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">500</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(&#160;nTotalChars</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">nTotoalWords&#160;</span><span style="COLOR: #000000">>=</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">6</span><span style="COLOR: #000000">&#160;)<br><img id="Codehighlighter1_1291_1309_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1291_1309_Open_Text.style.display='none'; Codehighlighter1_1291_1309_Closed_Image.style.display='inline'; Codehighlighter1_1291_1309_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_1291_1309_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1291_1309_Closed_Text.style.display='none'; Codehighlighter1_1291_1309_Open_Image.style.display='inline'; Codehighlighter1_1291_1309_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span id="Codehighlighter1_1291_1309_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id="Codehighlighter1_1291_1309_Open_Text"><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">1000</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top">&#160;&#160;&#160;&#160;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align="top">&#160;&#160;&#160;&#160;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&#160;</span><span style="COLOR: #000000">250</span><span style="COLOR: #000000">;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align="top">}</span></span><span style="COLOR: #000000">;</span></div><img src ="http://www.cppblog.com/JunZe/aggbug/68216.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/JunZe/" target="_blank">赵均泽</a> 2008-11-30 12:42 <a href="http://www.cppblog.com/JunZe/archive/2008/11/30/68216.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>