锘??xml version="1.0" encoding="utf-8" standalone="yes"?>少妇人妻综合久久中文字幕 ,久久精品国产亚洲av麻豆小说 ,久久99国产精品久久http://www.shnenglu.com/wzqxp2002/do my best!zh-cnWed, 07 May 2025 00:51:34 GMTWed, 07 May 2025 00:51:34 GMT60姹?鍑犱綍綰︽潫姹傝В 鏂歸潰鐨勬湅鍙?/title><link>http://www.shnenglu.com/wzqxp2002/archive/2007/04/19/22336.html</link><dc:creator>wzqxp2002</dc:creator><author>wzqxp2002</author><pubDate>Thu, 19 Apr 2007 15:27:00 GMT</pubDate><guid>http://www.shnenglu.com/wzqxp2002/archive/2007/04/19/22336.html</guid><wfw:comment>http://www.shnenglu.com/wzqxp2002/comments/22336.html</wfw:comment><comments>http://www.shnenglu.com/wzqxp2002/archive/2007/04/19/22336.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/wzqxp2002/comments/commentRss/22336.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wzqxp2002/services/trackbacks/22336.html</trackback:ping><description><![CDATA[<p>鏈夊湪鍋氬嚑浣曠害鏉熸眰瑙g殑鏈嬪弸涔堬紵鑳戒竴璧蜂氦嫻佷箞錛?br>璇蜂笌鎴戣仈緋伙紒鎴戞ラ渶浣犵殑甯姪錛?/p> <br>鎴戠殑QQ錛?0858492<br>email錛?a href="mailto:wzqxp2002@163.com">wzqxp2002@163.com</a> <img src ="http://www.shnenglu.com/wzqxp2002/aggbug/22336.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wzqxp2002/" target="_blank">wzqxp2002</a> 2007-04-19 23:27 <a href="http://www.shnenglu.com/wzqxp2002/archive/2007/04/19/22336.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍒楀嚭鎵鏈?浣嶆暟錛屽畠鐨勫墠n浣嶈兘琚玭鏁撮櫎 http://www.shnenglu.com/wzqxp2002/archive/2007/04/19/22325.htmlwzqxp2002wzqxp2002Thu, 19 Apr 2007 12:04:00 GMThttp://www.shnenglu.com/wzqxp2002/archive/2007/04/19/22325.htmlhttp://www.shnenglu.com/wzqxp2002/comments/22325.htmlhttp://www.shnenglu.com/wzqxp2002/archive/2007/04/19/22325.html#Feedback0http://www.shnenglu.com/wzqxp2002/comments/commentRss/22325.htmlhttp://www.shnenglu.com/wzqxp2002/services/trackbacks/22325.html浠庝綆浣嶅紑濮嬶細
鑰楁椂錛?031 CLOCKS_PER_SEC 錛堟湭杈撳嚭錛?/strong>

#include <vector>
#include 
<algorithm>
#include 
<iostream>
#include
<ctime> 
using namespace std;

void GenerateCandidate(
int n, vector<int>& Candidate, vector<int>& Filter)
{
    
int base = 1;
    
for (int i=1; i<n; ++i)
    {
        base 
*= 10;
    }
    
int baseUp = base*10;

    
int remainder = base % n;
    
if (remainder != 0)
    {
        
int quotient = base / n;
        base 
= (quotient+1)*n;
    }

    
int number = base;
    
do 
    { 
        
int numberTest = number/10;
        
if(binary_search(Filter.begin(), Filter.end(), numberTest))
        {
            Candidate.push_back(number);
        }

        number 
+= n;
    } 
while(number < baseUp);
}

void InitFilter(vector
<int>& Filter)
{
    
for (int i=1; i<10++i)
    {
        
Filter.push_back(i);
    }
}

int _tmain(int argc, _TCHAR* argv[])
{
    vector
<int> candidate;
    vector
<int> filter;
    InitFilter(
filter);
    
//candidate.reserve(100000000);
    
//filter.reserve(100000000);
    
for (int i=2; i<9++i)
    {
        GenerateCandidate(i, candidate, 
filter);
        
//copy(candidate.begin(), candidate.end(), ostream_iterator<int>(cout, "\n"));
        
filter.clear();
        candidate.swap(
filter);
    }
    candidate.swap(
filter);
    
//copy(candidate.begin(), candidate.end(), ostream_iterator<int>(cout, " "));
    cout
<<endl <<"count:" <<candidate.size();
    cout
<<endl <<"time:"<<clock(); 
    char c;
    cin
>>c;
    return 
0;
}


浠庨珮浣嶅紑濮嬶細
鑰楁椂錛?縐掞紙鏈緭鍑猴級
#include <iostream>
#include
<ctime> 
using namespace std;

int count =0;
void FindNumber(
int base, int power, int end)
{
    
int bounce = base+9;
    
int remainder = base%power;
    
if (0 != remainder)
    {
        remainder 
= power - remainder;
    }

    base 
+= remainder;
    
do 
    {
        
if (power == end)
        {
            
//cout << base <<" ";
            count
++;
        }
        
else if(base != 0)
        {
            FindNumber(base
*10, power+1end);
        }
        base 
+= power;
    } 
while(base<=bounce);
}

void FindNumber(
int end)
{
    FindNumber(
01end);
}

int _tmain(int argc, _TCHAR* argv[])
{
    FindNumber(
9);

    cout
<<endl<<count;
cout
<<endl <<"time:"<<clock(); 
    char c;
    cin
>>c;
    return 
0;
}


wzqxp2002 2007-04-19 20:04 鍙戣〃璇勮
]]>
鍥涘垯娣峰悎榪愮畻http://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22252.htmlwzqxp2002wzqxp2002Wed, 18 Apr 2007 13:45:00 GMThttp://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22252.htmlhttp://www.shnenglu.com/wzqxp2002/comments/22252.htmlhttp://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22252.html#Feedback0http://www.shnenglu.com/wzqxp2002/comments/commentRss/22252.htmlhttp://www.shnenglu.com/wzqxp2002/services/trackbacks/22252.html闃呰鍏ㄦ枃

wzqxp2002 2007-04-18 21:45 鍙戣〃璇勮
]]>
灝嗗瓧絎︿覆杞崲鎴愭暣鏁扮殑灝忎唬鐮?/title><link>http://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22227.html</link><dc:creator>wzqxp2002</dc:creator><author>wzqxp2002</author><pubDate>Wed, 18 Apr 2007 09:30:00 GMT</pubDate><guid>http://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22227.html</guid><wfw:comment>http://www.shnenglu.com/wzqxp2002/comments/22227.html</wfw:comment><comments>http://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22227.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wzqxp2002/comments/commentRss/22227.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wzqxp2002/services/trackbacks/22227.html</trackback:ping><description><![CDATA[<font color=#0000ff size=2> <p> </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>using namespace std;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>bool StringToInt(char</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> str, </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000"> Digite)<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (str </span><span style="COLOR: #000000">==</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">NULL</span><span style="COLOR: #000000"> || </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">str </span><span style="COLOR: #000000">==</span><span style="COLOR: #000000"> </span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">\0')</span><span style="COLOR: #008000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">    {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>        return </span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    char</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> pChar </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> str;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    Digite </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(; </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">pChar!</span><span style="COLOR: #000000">=</span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">\0';++pChar)</span><span style="COLOR: #008000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">    {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>        Digite </span><span style="COLOR: #000000">*=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>        </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">pChar </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> </span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">0' || *pChar > '9')</span><span style="COLOR: #008000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">        {<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>            return </span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>        }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>        Digite </span><span style="COLOR: #000000">+=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000">pChar </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000"> </span><span style="COLOR: #008000">'</span><span style="COLOR: #008000">0';</span><span style="COLOR: #008000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">    }<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    return </span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>}<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> _tmain(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> argc, _TCHAR</span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> argv[])<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>{<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> iResult;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    StringToInt(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">342566</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, iResult);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> iResult;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    cin </span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">iResult;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>    return </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>}</span></div> <p></font><font size=2> </p> </font> <img src ="http://www.shnenglu.com/wzqxp2002/aggbug/22227.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wzqxp2002/" target="_blank">wzqxp2002</a> 2007-04-18 17:30 <a href="http://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22227.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>autodesk 鎷涜仒http://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22225.htmlwzqxp2002wzqxp2002Wed, 18 Apr 2007 09:13:00 GMThttp://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22225.htmlhttp://www.shnenglu.com/wzqxp2002/comments/22225.htmlhttp://www.shnenglu.com/wzqxp2002/archive/2007/04/18/22225.html#Feedback4http://www.shnenglu.com/wzqxp2002/comments/commentRss/22225.htmlhttp://www.shnenglu.com/wzqxp2002/services/trackbacks/22225.html
鍏徃涓婚〉錛?www.autodesk.com

鍏徃涓昏浜у搧錛?/div>
 AutoCAD(ADT, MEP), Revit(ADT,MEP), Civil 3D, Inventor, AutoCAD Map, 3ds max?, Maya, Discreet

闇瑕佽亴浣嶏細

This position is for an entry/intermediate software developer.

  • Join a growing and dynamic team developing Autodesk Building Information Modeling Applications
  • Design, prototype, implement, test and troubleshoot product features according to market requirements and product specifications.
  • Work as a member of an integrated team collaborating closely with team members in US.
  • Must be a self starter and a strong team player.

Requirements:

  • BS or higher in Computer Science, Mathematics, or Engineering.
  • Experience with C++ programming, OOA and OOD.
  • Experience with Microsoft Visual C++ development environment
  • Ability to work on multiple complex projects simultaneously.
  • Experience in math, especially in geometry is a big plus.
  • Working Knowledge of .NET work as well as C#, VB.NET, etc is a plus.
  • Good English speaking and writing skills. Must know and be able to articulate technical idioms in English.

This position is for a lead software developer.

  • Join a growing and dynamic team developing Autodesk Building Information Modeling Applications
  • Design, prototype, implement, test and troubleshoot product features according to market requirements and product specifications.
  • Work as a member of an integrated team collaborating closely with team members in US.
  • Must be a self starter and a strong team player.

Requirements:

  • BS or higher in Computer Science, Mathematics, or Engineering.
  • Four or more years of C++ programming experience, OOA and OOD.
  • Experience with Microsoft Visual C++ development environment
  • Experience as a team/project/technical lead.
  • Ability to work on multiple complex projects simultaneously.
  • Experience in math, especially in geometry is a big plus.
  • Working Knowledge of .NET work as well as C#, VB.NET, etc is a plus.
  • Good English speaking and writing skills. Must know and be able to articulate technical idioms in English.

鏈夋剰鑰呰灝嗙畝鍘嗗彂閫佽嚦錛?a href="mailto:Zhenquan.Wang@autodesk.com">Zhenquan.Wang@autodesk.com, 鎴戝皢閫夋嫨鍚堥傜殑綆鍘嗘帹鑽愩?/span>



wzqxp2002 2007-04-18 17:13 鍙戣〃璇勮
]]>Blender 3Dhttp://www.shnenglu.com/wzqxp2002/archive/2007/03/02/19135.htmlwzqxp2002wzqxp2002Fri, 02 Mar 2007 10:27:00 GMThttp://www.shnenglu.com/wzqxp2002/archive/2007/03/02/19135.htmlhttp://www.shnenglu.com/wzqxp2002/comments/19135.htmlhttp://www.shnenglu.com/wzqxp2002/archive/2007/03/02/19135.html#Feedback0http://www.shnenglu.com/wzqxp2002/comments/commentRss/19135.htmlhttp://www.shnenglu.com/wzqxp2002/services/trackbacks/19135.htmlhttp://www.blender3d.com/聽 Blender 3D 2.42 : 涓夌淮瀵硅薄鐨勫緩妯°佹覆鏌?


wzqxp2002 2007-03-02 18:27 鍙戣〃璇勮
]]>
璁$畻鏈烘牳蹇冩湡鍒婁竴瑙堣〃http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8424.htmlwzqxp2002wzqxp2002Sun, 11 Jun 2006 08:02:00 GMThttp://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8424.htmlhttp://www.shnenglu.com/wzqxp2002/comments/8424.htmlhttp://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8424.html#Feedback0http://www.shnenglu.com/wzqxp2002/comments/commentRss/8424.htmlhttp://www.shnenglu.com/wzqxp2002/services/trackbacks/8424.html闃呰鍏ㄦ枃

wzqxp2002 2006-06-11 16:02 鍙戣〃璇勮
]]>
浠ヤ簩榪涘埗鏍煎紡杈撳嚭瀵硅薄http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8420.htmlwzqxp2002wzqxp2002Sun, 11 Jun 2006 07:32:00 GMThttp://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8420.htmlhttp://www.shnenglu.com/wzqxp2002/comments/8420.htmlhttp://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8420.html#Feedback2http://www.shnenglu.com/wzqxp2002/comments/commentRss/8420.htmlhttp://www.shnenglu.com/wzqxp2002/services/trackbacks/8420.html鏄叧閿傝В鍐蟲柟娉曟槸閫氳繃浣嶆搷浣滄壘鍑哄璞″唴瀛樼殑姣忎竴涓猙it鐨勫箋傚茍鎶婅鏂規硶灝佽鎴愪竴涓凱浠e櫒銆?br />聽瑕佹敞鎰忕殑闂鏄綅鎿嶄綔絎﹀彧鑳藉鏁存暟綾誨瀷榪涜鎿嶄綔錛屼負浜嗗鎵鏈夌被鍨嬬殑瀵硅薄閮芥湁鏁堬紝蹇呴』灝嗗
璞″綋浣渃har鏁扮粍鏉ュ鐞嗐?br />
template<class聽Container>
class聽bit_iterator聽:聽public聽std::iterator<bidirectional_iterator_tag,
void,聽void>
{
public:
explicit聽bit_iterator(Container&聽c)聽:聽m_container(&c)
聽{
聽聽m_size聽聽
=8*sizeof(Container);
聽聽m_index聽
=0;
聽}
explicit聽bit_iterator()聽:聽m_container(0)
聽{
聽聽m_size聽聽
=8*sizeof(Container);
聽聽m_index聽
=聽m_size;
聽}
booloperator*聽()
聽{
聽聽
char聽mask聽=1;
聽聽
char*聽pc聽=聽(char*)m_container;
聽聽
int聽i聽聽聽聽聽=聽(m_size-m_index-1)/8;
聽聽
int聽off聽聽聽=聽(m_size-m_index-1)%8;
聽聽mask聽
<<=off;
聽聽
return聽聽pc[i]聽&聽mask;
聽}
聽bit_iterator
<Container>&operator++()
聽{
聽聽m_index
++;
聽聽
return*this;
聽}
聽bit_iterator
<Container>&operator++(int)
聽{
聽聽m_index
++;
聽聽
return*this;
聽}
booloperator==(bit_iterator<Container>&聽bitIt)
聽{
聽聽
return聽m_index聽==聽bitIt.m_index;
聽}
booloperator!=(bit_iterator<Container>&聽bitIt)
聽{
聽聽
return!(*this==聽bitIt);
聽}
protected:
聽Container
*聽m_container;
private:
int聽m_size;
int聽m_index;
};

鐢ㄨ榪唬鍣ㄥ彲浠ュ皢浠繪剰綾誨瀷瀵硅薄浠ヤ簩榪涘埗鏍煎紡杈撳嚭錛?br />
double聽a聽=10;
copy(bit_iterator
<double>(a),聽bit_iterator<double>聽(),聽ostream_iterator<bool>(cout,聽""));




wzqxp2002 2006-06-11 15:32 鍙戣〃璇勮
]]>
cin杈撳叆澶辮觸鐨勯棶棰?/title><link>http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8419.html</link><dc:creator>wzqxp2002</dc:creator><author>wzqxp2002</author><pubDate>Sun, 11 Jun 2006 07:25:00 GMT</pubDate><guid>http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8419.html</guid><wfw:comment>http://www.shnenglu.com/wzqxp2002/comments/8419.html</wfw:comment><comments>http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8419.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wzqxp2002/comments/commentRss/8419.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wzqxp2002/services/trackbacks/8419.html</trackback:ping><description><![CDATA[ <table class="fixedTable blogpost" cellspacing="0" width="100%" border="0"> <tbody> <tr> <td id="msgcns!91353F4C90156BE7!233"> <div> <div> <font size="2"> 榪欎富瑕佹槸Streams鐘舵佺殑闂銆係treams瀹氫箟浜嗕竴浜涘瀷鍒負iostate鐨勫父鏁幫紝鐢ㄤ互鍙嶆槧stream鐨勭姸鎬侊細</font> </div> <div> <font size="2">聽聽聽 goodbit 錛氫竴鍒囬兘濂斤紱娌℃湁鍏朵粬浠諱綍鐘舵佷負琚绔嬶紱</font> </div> <div> <font size="2">聽聽聽 eofbit聽 錛氶亣鍒癳nd-of-file錛?/font> </div> <div> <font size="2">聽聽聽 failbit 錛氶敊璇紱鏌愪釜I/O鎿嶄綔鏈垚鍔燂紙閫氬父鏄敱浜庤鍏ユ牸寮忛敊璇紝渚嬪紼嬪簭鎯寵鍏ヤ竴涓暣鏁幫紝鍗撮亣鍒頒竴涓瓧絎︼級錛?/font> </div> <div> <font size="2">聽聽聽 badbit聽 錛氭瘉鐏ч敊璇紱</font> </div> <div> <font size="2"> </font>聽</div> <div> <font size="2">C璇█鍙互鍦ㄢ滄牸寮忛敊璇濆彂鐢熶箣鍚庝粛鐒惰鍏ュ瓧絎︺備絾C錛嬶紜涓嶅悓錛氬鏋滆緗簡failbit錛岄櫎闈炴樉紺轟簣浠ユ竻闄わ紝鍚﹀垯鏃犳硶榪涜涓嬩竴涓搷浣溿?/font> </div> <div> <font size="2"> </font>聽</div> <div> <font size="2">鍏蜂綋璇峰弬鑰冦奀錛嬶紜鏍囧噯紼嬪簭搴撱媝597, Streams鐨勭姸鎬佷竴鑺傘?/font> </div> <div> <font size="2"> </font>聽</div> <div> <font size="2"> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #000000"> <br /> <img src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽main()<br /><img id="Codehighlighter1_12_344_Open_Image" onclick="this.style.display='none'; Codehighlighter1_12_344_Open_Text.style.display='none'; Codehighlighter1_12_344_Closed_Image.style.display='inline'; Codehighlighter1_12_344_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_12_344_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_12_344_Closed_Text.style.display='none'; Codehighlighter1_12_344_Open_Image.style.display='inline'; Codehighlighter1_12_344_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span> <span id="Codehighlighter1_12_344_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.shnenglu.com/images/dot.gif" /> </span> <span id="Codehighlighter1_12_344_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽a聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">;<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">char</span> <span style="COLOR: #000000">聽b聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">;<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">do</span> <span style="COLOR: #000000"> <br /> <img id="Codehighlighter1_59_302_Open_Image" onclick="this.style.display='none'; Codehighlighter1_59_302_Open_Text.style.display='none'; Codehighlighter1_59_302_Closed_Image.style.display='inline'; Codehighlighter1_59_302_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /> <img id="Codehighlighter1_59_302_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_59_302_Closed_Text.style.display='none'; Codehighlighter1_59_302_Open_Image.style.display='inline'; Codehighlighter1_59_302_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽</span> <span id="Codehighlighter1_59_302_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.shnenglu.com/images/dot.gif" /> </span> <span id="Codehighlighter1_59_302_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽cout聽</span> <span style="COLOR: #000000"><<</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">please聽input聽the聽a聽and聽b</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">;<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽cin聽</span> <span style="COLOR: #000000">>></span> <span style="COLOR: #000000">聽a;聽<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(cin.fail())<br /><img id="Codehighlighter1_128_198_Open_Image" onclick="this.style.display='none'; Codehighlighter1_128_198_Open_Text.style.display='none'; Codehighlighter1_128_198_Closed_Image.style.display='inline'; Codehighlighter1_128_198_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_128_198_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_128_198_Closed_Text.style.display='none'; Codehighlighter1_128_198_Open_Image.style.display='inline'; Codehighlighter1_128_198_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽</span> <span id="Codehighlighter1_128_198_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.shnenglu.com/images/dot.gif" /> </span> <span id="Codehighlighter1_128_198_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽cin.clear();<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽cin.rdbuf()</span> <span style="COLOR: #000000">-></span> <span style="COLOR: #000000">pubseekpos(cin.rdbuf()</span> <span style="COLOR: #000000">-></span> <span style="COLOR: #000000">in_avail());<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽cin聽</span> <span style="COLOR: #000000">>></span> <span style="COLOR: #000000">聽b;<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(cin.fail())<br /><img id="Codehighlighter1_229_299_Open_Image" onclick="this.style.display='none'; Codehighlighter1_229_299_Open_Text.style.display='none'; Codehighlighter1_229_299_Closed_Image.style.display='inline'; Codehighlighter1_229_299_Closed_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_229_299_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_229_299_Closed_Text.style.display='none'; Codehighlighter1_229_299_Open_Image.style.display='inline'; Codehighlighter1_229_299_Open_Text.style.display='inline';" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽</span> <span id="Codehighlighter1_229_299_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.shnenglu.com/images/dot.gif" /> </span> <span id="Codehighlighter1_229_299_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽cin.clear();<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽cin.rdbuf()</span> <span style="COLOR: #000000">-></span> <span style="COLOR: #000000">pubseekpos(cin.rdbuf()</span> <span style="COLOR: #000000">-></span> <span style="COLOR: #000000">in_avail());<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽}</span> </span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">while</span> <span style="COLOR: #000000">(a聽</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">||</span> <span style="COLOR: #000000">聽b聽</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">);<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">;<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> <span style="COLOR: #000000">聽<br /><img src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" align="top" /></span> </div> <br />聽 </font> </div> </div> </td> </tr> <tr> <td> <table cellspacing="0" border="0"> <tbody> </tbody> </table> </td> </tr> </tbody> </table> <img src ="http://www.shnenglu.com/wzqxp2002/aggbug/8419.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wzqxp2002/" target="_blank">wzqxp2002</a> 2006-06-11 15:25 <a href="http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8419.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>vc涓搷浣渆xcel鐨勬柟娉?/title><link>http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8418.html</link><dc:creator>wzqxp2002</dc:creator><author>wzqxp2002</author><pubDate>Sun, 11 Jun 2006 07:10:00 GMT</pubDate><guid>http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8418.html</guid><wfw:comment>http://www.shnenglu.com/wzqxp2002/comments/8418.html</wfw:comment><comments>http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8418.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/wzqxp2002/comments/commentRss/8418.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wzqxp2002/services/trackbacks/8418.html</trackback:ping><description><![CDATA[ <div> <div>鎴戠敤鐨勬槸excel2000 <br />棣栧厛鍒╃敤Visual C++ 6.0錛屽緩绔嬩竴涓狹FC鍩轟簬瀵硅瘽妗嗙殑宸ョ▼欏圭洰錛屽叡浜獶LL錛學in32騫沖彴銆傚伐紼嬪悕縐癊xcelTest銆傚湪涓誨璇濇涓姞鍏ヤ竴涓寜閽紝 <br />ID IDC_EXCELTEST <br />Caption Test Excel <br />鍙屽嚮璇ユ寜閽紝澧炲姞鎴愬憳鍑芥暟void CExcelTestDlg::OnExceltest()銆?<br />鍦˙OOL CExcelTestApp::InitInstance()涓紝dlg.DoModal();涔嬪墠澧炲姞浠g爜錛?<br />if (CoInitialize(NULL)!=0) <br />{ <br />AfxMessageBox("鍒濆鍖朇OM鏀寔搴撳け璐?"); <br />exit(1); <br />} <br />鍦╮eturn FALSE; 璇彞鍓嶏紝鍔犲叆錛?<br />CoUninitialize(); <br />閫夋嫨Menu->View->ClassWizade錛屾墦寮ClassWizade紿楀彛錛岄夋嫨Add Class->From a type library錛岄夋嫨D:\Program Files\Microsoft Office\office\Excel9.OLB(D:\Program Files\Microsoft Office\鏄湰鏈轟笂Microsoft Office 2000鐨勫畨瑁呯洰褰曪紝鍙牴鎹釜浜烘満鍣ㄤ笂鐨勫疄闄呭畨瑁呯洰褰曚慨鏀?銆傞夋嫨_Application銆乄orkbooks銆乢Workbook銆乄orksheets銆乢Worksheet銆丷ange錛屽姞鍏ユ柊綾伙紝鍒嗗埆涓篲Application銆乄orkbooks銆乢Workbook銆乄orksheets銆乢Worksheet銆丷ange錛屽ご鏂囦歡Excel9.h錛屾簮鏂囦歡Excel9.cpp銆?<br />鍦‥xcelTestDlg.cpp鏂囦歡鐨勫ご閮紝#include "ExcelTestDlg.h"璇彞涔嬩笅錛屽鍔?錛?<br />#include "comdef.h" <br />#include "Excel9.h" <br />鍦╲oid CExcelTestDlg::OnExceltest() 鍑芥暟涓鍔犲涓嬩唬鐮侊細 <br />void CExcelTestDlg::OnExceltest() <br />{ <br />_Application ExcelApp; <br />Workbooks wbsMyBooks; <br />_Workbook wbMyBook; <br />Worksheets wssMysheets; <br />_Worksheet wsMysheet; <br />Range rgMyRge; <br />//鍒涘緩Excel 2000鏈嶅姟鍣?鍚姩Excel) <br /><br />if (!ExcelApp.CreateDispatch("Excel.Application",NULL)) <br />{ <br />AfxMessageBox("鍒涘緩Excel鏈嶅姟澶辮觸!"); <br />exit(1); <br />} <br />//鍒╃敤妯℃澘鏂囦歡寤虹珛鏂版枃妗?<br />wbsMyBooks.AttachDispatch(ExcelApp.GetWorkbooks(),true); <br />wbMyBook.AttachDispatch(wbsMyBooks.Add(_variant_t("g:\\exceltest\\MyTemplate.xlt"))); <br />//寰楀埌Worksheets <br />wssMysheets.AttachDispatch(wbMyBook.GetWorksheets(),true); <br />//寰楀埌sheet1 <br />wsMysheet.AttachDispatch(wssMysheets.GetItem(_variant_t("sheet1")),true); <br />//寰楀埌鍏ㄩ儴Cells錛屾鏃?rgMyRge鏄痗ells鐨勯泦鍚?<br />rgMyRge.AttachDispatch(wsMysheet.GetCells(),true); <br />//璁劇疆1琛?鍒楃殑鍗曞厓鐨勫?<br />rgMyRge.SetItem(_variant_t((long)1),_variant_t((long)1),_variant_t("This Is A Excel Test Program!")); <br />//寰楀埌鎵鏈夌殑鍒?<br />rgMyRge.AttachDispatch(wsMysheet.GetColumns(),true); <br />//寰楀埌絎竴鍒?<br />rgMyRge.AttachDispatch(rgMyRge.GetItem(_variant_t((long)1),vtMissing).pdispVal,true); <br />//璁劇疆鍒楀 <br />rgMyRge.SetColumnWidth(_variant_t((long)200)); <br />//璋冪敤妯℃澘涓鍏堝瓨鏀劇殑瀹?<br />ExcelApp.Run(_variant_t("CopyRow"),_variant_t((long)10),vtMissing,vtMissing, <br />vtMissing,vtMissing,vtMissing,vtMissing,vtMissing,vtMissing,vtMissing, <br />vtMissing,vtMissing,vtMissing,vtMissing,vtMissing,vtMissing,vtMissing, <br />vtMissing,vtMissing,vtMissing,vtMissing,vtMissing,vtMissing,vtMissing, <br />vtMissing,vtMissing,vtMissing,vtMissing,vtMissing,vtMissing); <br />//鎵撳嵃棰勮 <br />wbMyBook.SetSaved(true); <br />ExcelApp.SetVisible(true); <br />wbMyBook.PrintPreview(_variant_t(false)); <br />//閲婃斁瀵硅薄 <br />rgMyRge.ReleaseDispatch(); <br />wsMysheet.ReleaseDispatch(); <br />wssMysheets.ReleaseDispatch(); <br />wbMyBook.ReleaseDispatch(); <br />wbsMyBooks.ReleaseDispatch(); <br />ExcelApp.ReleaseDispatch(); <br />}</div> <div>聽</div> <div>聽</div> <div>浠ヤ笂鍐呭寮曡嚜緗戠粶銆?/div> <div>聽</div> <div>聽</div> <div>涓涓嬫槸鎴戣嚜宸卞啓鐨勭被錛屽皢瀵筫xcel鐨勬搷浣滃皝瑁呬簡涓涓嬶細</div> <div>聽</div> <div>.h鏂囦歡錛?/div> <div>聽</div> <div>#include "comdef.h" <br />#include "excel.h" </div> <div>class ExcelFile聽 <br />{<br />public:<br />聽void ShowInExcel(bool bShow);<br />聽CString GetCell(int iRow, int iColumn);<br />聽int聽聽聽聽 GetCellInt(int iRow, int iColumn);<br />聽int GetRowCount();<br />聽int GetColumnCount();<br />聽bool LoadSheet(int iIndex);<br />聽CString GetSheetName(int iIndex);<br />聽static void InitExcel();<br />聽static void ReleaseExcel();</div> <div>聽int GetSheetCount();<br />聽bool Open(CString FileName);<br />聽ExcelFile();<br />聽virtual ~ExcelFile();</div> <div>protected:</div> <div>private:<br />聽static _Application m_ExcelApp;<br />聽<br />聽Workbooks聽聽聽 m_Books; <br />聽_Workbook聽聽聽 m_Book; <br />聽Worksheets聽聽 m_sheets; <br />聽_Worksheet聽聽 m_sheet; <br />聽Range聽聽聽聽聽聽聽 m_Rge; <br />};</div> <div>聽</div> <div>.cpp鏂囦歡錛?/div> <div>聽</div> <div>ExcelFile::ExcelFile()<br />{<br />}</div> <div>ExcelFile::~ExcelFile()<br />{<br />聽m_Rge.ReleaseDispatch(); <br />聽m_sheet.ReleaseDispatch(); <br />聽m_sheets.ReleaseDispatch(); <br />聽m_Book.ReleaseDispatch(); <br />聽m_Books.ReleaseDispatch(); <br />}</div> <div>void ExcelFile::InitExcel()<br />{<br />聽//鍒涘緩Excel 2000鏈嶅姟鍣?鍚姩Excel) <br />聽if (!m_ExcelApp.CreateDispatch("Excel.Application",NULL)) <br />聽{ <br />聽聽AfxMessageBox("鍒涘緩Excel鏈嶅姟澶辮觸!"); <br />聽聽exit(1); <br />聽} <br />}</div> <div>void ExcelFile::ReleaseExcel()<br />{<br />聽m_ExcelApp.ReleaseDispatch();<br />}</div> <div>bool ExcelFile::Open(CString FileName)<br />{//鎵撳紑excel鏂囦歡<br />聽//鍒╃敤妯℃澘鏂囦歡寤虹珛鏂版枃妗?<br />聽m_Books.AttachDispatch(m_ExcelApp.GetWorkbooks(),true); <br />聽LPDISPATCH lpDis = NULL;<br />聽lpDis = m_Books.Add(_variant_t(FileName)); // 濡備綍鍒ゆ柇鏂囦歡鏄惁鎵撳紑錛?br />聽if (lpDis)<br />聽{<br />聽聽m_Book.AttachDispatch(lpDis); <br />聽聽//寰楀埌Worksheets <br />聽聽m_sheets.AttachDispatch(m_Book.GetWorksheets(),true); <br />聽聽return true;<br />聽}</div> <div>聽return false;<br />}</div> <div>int ExcelFile::GetSheetCount()<br />{<br />聽return m_sheets.GetCount();<br />}</div> <div>CString ExcelFile::GetSheetName(int iIndex)<br />{<br />聽_Worksheet sheet;<br />聽sheet.AttachDispatch(m_sheets.GetItem(_variant_t((long)iIndex)),true);<br />聽CString name = sheet.GetName();<br />聽sheet.ReleaseDispatch();</div> <div>聽return name;<br />}</div> <div>bool ExcelFile::LoadSheet(int iIndex)<br />{<br />聽LPDISPATCH lpDis = NULL;<br />聽m_Rge.ReleaseDispatch();<br />聽m_sheet.ReleaseDispatch();<br />聽lpDis = m_sheets.GetItem(_variant_t((long)iIndex));<br />聽if (lpDis)<br />聽{<br />聽聽m_sheet.AttachDispatch(lpDis,true);<br />聽聽m_Rge.AttachDispatch(m_sheet.GetCells(), true);<br />聽聽return true;<br />聽}<br />聽<br />聽return false;<br />}</div> <div>int ExcelFile::GetColumnCount()<br />{<br />聽Range range;<br />聽Range usedRange;<br />聽usedRange.AttachDispatch(m_sheet.GetUsedRange(), true);<br />聽range.AttachDispatch(usedRange.GetColumns(), true);<br />聽int count = range.GetCount();<br />聽usedRange.ReleaseDispatch();<br />聽range.ReleaseDispatch();</div> <div>聽return count;<br />}</div> <div>int ExcelFile::GetRowCount()<br />{<br />聽Range range;<br />聽Range usedRange;<br />聽usedRange.AttachDispatch(m_sheet.GetUsedRange(), true);<br />聽range.AttachDispatch(usedRange.GetRows(), true);<br />聽int count = range.GetCount();<br />聽usedRange.ReleaseDispatch();<br />聽range.ReleaseDispatch();</div> <div>聽return count;<br />}</div> <div>CString ExcelFile::GetCell(int iRow, int iColumn)<br />{<br />聽Range range;<br />聽range.AttachDispatch(m_Rge.GetItem (COleVariant((long)iRow),COleVariant((long)iColumn)).pdispVal, true);<br />聽COleVariant vResult =range.GetValue2();<br />聽CString str;<br />聽if(vResult.vt == VT_BSTR)聽聽聽聽聽聽 //瀛楃涓?br />聽{<br />聽聽str=vResult.bstrVal;<br />聽}<br />聽else if (vResult.vt==VT_INT)<br />聽{<br />聽聽str.Format("%d",vResult.pintVal);<br />聽}<br />聽else if (vResult.vt==VT_R8)聽聽聽聽 //8瀛楄妭鐨勬暟瀛?<br />聽{<br />聽聽str.Format("%f",vResult.dblVal);<br />聽聽//str.Format("%.0f",vResult.dblVal);<br />聽聽//str.Format("%1f",vResult.fltVal);<br />聽}<br />聽else if(vResult.vt==VT_DATE)聽聽聽 //鏃墮棿鏍煎紡<br />聽{<br />聽聽SYSTEMTIME st;<br />聽聽VariantTimeToSystemTime(vResult.date, &st);<br />聽}<br />聽else if(vResult.vt==VT_EMPTY)聽聽 //鍗曞厓鏍肩┖鐨?br />聽{<br />聽聽str="(NULL)";<br />聽}聽 <br />聽<br />聽range.ReleaseDispatch();<br />聽<br />聽return str;<br />}</div> <div>int ExcelFile::GetCellInt(int iRow, int iColumn)<br />{<br />聽Range range;<br />聽range.AttachDispatch(m_Rge.GetItem (COleVariant((long)iRow),COleVariant((long)iColumn)).pdispVal, true);<br />聽COleVariant vResult =range.GetValue2();<br />聽int num;<br />聽num = (int)vResult.date;<br />聽<br />聽range.ReleaseDispatch();<br />聽<br />聽return num;<br />}</div> <div>void ExcelFile::ShowInExcel(bool bShow)<br />{<br />聽m_ExcelApp.SetVisible(bShow);<br />}</div> </div> <img src ="http://www.shnenglu.com/wzqxp2002/aggbug/8418.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wzqxp2002/" target="_blank">wzqxp2002</a> 2006-06-11 15:10 <a href="http://www.shnenglu.com/wzqxp2002/archive/2006/06/11/8418.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.ahsxd.org.cn" target="_blank">亚洲国产精品无码久久一区二区 </a>| <a href="http://www.hbxstech.cn" target="_blank">国产成人精品久久亚洲</a>| <a href="http://www.bsgrhb.cn" target="_blank">久久精品一本到99热免费</a>| <a href="http://www.ruea.cn" target="_blank">亚洲国产成人精品无码久久久久久综合 </a>| <a href="http://www.xiwangchuang.cn" target="_blank">人妻精品久久无码专区精东影业</a>| <a href="http://www.peopleim.cn" target="_blank">久久久久亚洲精品天堂久久久久久 </a>| <a href="http://www.ndali.cn" target="_blank">国产精品免费看久久久香蕉</a>| <a href="http://www.yozang.cn" target="_blank">久久久精品一区二区三区</a>| <a href="http://www.020hb.com.cn" target="_blank">91精品国产综合久久婷婷</a>| <a href="http://www.hwhack.cn" target="_blank">国产精品一区二区久久不卡</a>| <a href="http://www.pp4f.cn" target="_blank">狠狠色婷婷久久一区二区三区</a>| <a href="http://www.jyyyzxw.cn" target="_blank">国产69精品久久久久久人妻精品</a>| <a href="http://www.zqz6251.cn" target="_blank">无码任你躁久久久久久老妇App</a>| <a href="http://www.gz2378.cn" target="_blank">亚洲国产成人精品无码久久久久久综合</a>| <a href="http://www.gdczjt.cn" target="_blank">嫩草影院久久99</a>| <a href="http://www.jxsrgh.com.cn" target="_blank">久久精品中文字幕第23页</a>| <a href="http://www.0546bbs.cn" target="_blank">久久最新免费视频</a>| <a href="http://www.990w.cn" target="_blank">国产成人精品久久</a>| <a href="http://www.dgchengxin.cn" target="_blank">国产精品99久久久久久人</a>| <a href="http://www.studenthotel.cn" target="_blank">青青草原1769久久免费播放</a>| <a href="http://www.sportssupport.cn" target="_blank">色成年激情久久综合</a>| <a href="http://www.ppxp.com.cn" target="_blank">久久综合亚洲色HEZYO国产 </a>| <a href="http://www.aigoua.cn" target="_blank">99久久国产综合精品成人影院</a>| <a href="http://www.cahe8.cn" target="_blank">国产三级观看久久</a>| <a href="http://www.bbdhtex.cn" target="_blank">欧美黑人激情性久久</a>| <a href="http://www.hbxdh.cn" target="_blank">AV无码久久久久不卡网站下载</a>| <a href="http://www.gjznet.cn" target="_blank">九九久久精品国产</a>| <a href="http://www.kdzj.net.cn" target="_blank">国内精品久久久久影院薰衣草 </a>| <a href="http://www.aion999.cn" target="_blank">精品久久国产一区二区三区香蕉</a>| <a href="http://www.laobianjing.cn" target="_blank">久久精品女人天堂AV麻</a>| <a href="http://www.more1.cn" target="_blank">无码国内精品久久人妻</a>| <a href="http://www.sanda8.com.cn" target="_blank">久久er热视频在这里精品</a>| <a href="http://www.seomajor.cn" target="_blank">亚洲国产成人精品女人久久久</a>| <a href="http://www.f938.cn" target="_blank">欧美精品久久久久久久自慰</a>| <a href="http://www.gaohuirong.cn" target="_blank">韩国三级中文字幕hd久久精品</a>| <a href="http://www.kottbac.cn" target="_blank">久久无码中文字幕东京热</a>| <a href="http://www.silkwormcup.cn" target="_blank">久久99久久99小草精品免视看</a>| <a href="http://www.baikuu.cn" target="_blank">日本亚洲色大成网站WWW久久</a>| <a href="http://www.bellesmontres.cn" target="_blank">久久精品国产亚洲AV无码麻豆</a>| <a href="http://www.b3382.cn" target="_blank">国产午夜精品理论片久久</a>| <a href="http://www.kwig.cn" target="_blank">久久国产乱子伦免费精品</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>