91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 832KB
    文件類(lèi)型: .zip
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-06-18
  • 語(yǔ)言: C/C++
  • 標(biāo)簽:

資源簡(jiǎn)介

C++初學(xué)者,使用控制臺(tái) 寫(xiě)的一個(gè)斗地主的游戲,斗地主的所有牌型都可以出,但是電腦出牌不是很智能,還有很多需要改進(jìn)的地方。

資源截圖

代碼片段和文件信息

/*
www.sourceforge.net/projects/tinyxml

This?software?is?provided?‘a(chǎn)s-is‘?without?any?express?or?implied
warranty.?In?no?event?will?the?authors?be?held?liable?for?any
damages?arising?from?the?use?of?this?software.

Permission?is?granted?to?anyone?to?use?this?software?for?any
purpose?including?commercial?applications?and?to?alter?it?and
redistribute?it?freely?subject?to?the?following?restrictions:

1.?The?origin?of?this?software?must?not?be?misrepresented;?you?must
not?claim?that?you?wrote?the?original?software.?If?you?use?this
software?in?a?product?an?acknowledgment?in?the?product?documentation
would?be?appreciated?but?is?not?required.

2.?Altered?source?versions?must?be?plainly?marked?as?such?and
must?not?be?misrepresented?as?being?the?original?software.

3.?This?notice?may?not?be?removed?or?altered?from?any?source
distribution.
*/


#ifndef?TIxml_USE_STL

#include?“tinystr.h“

//?Error?value?for?find?primitive
const?TixmlString::size_type?TixmlString::npos?=?static_castlString::size_type?>(-1);


//?Null?rep.
TixmlString::Rep?TixmlString::nullrep_?=?{?0?0?{?‘\0‘?}?};


void?TixmlString::reserve?(size_type?cap)
{
if?(cap?>?capacity())
{
TixmlString?tmp;
tmp.init(length()?cap);
memcpy(tmp.start()?data()?length());
swap(tmp);
}
}


TixmlString&?TixmlString::assign(const?char*?str?size_type?len)
{
size_type?cap?=?capacity();
if?(len?>?cap?||?cap?>?3*(len?+?8))
{
TixmlString?tmp;
tmp.init(len);
memcpy(tmp.start()?str?len);
swap(tmp);
}
else
{
memmove(start()?str?len);
set_size(len);
}
return?*this;
}


TixmlString&?TixmlString::append(const?char*?str?size_type?len)
{
size_type?newsize?=?length()?+?len;
if?(newsize?>?capacity())
{
reserve?(newsize?+?capacity());
}
memmove(finish()?str?len);
set_size(newsize);
return?*this;
}


TixmlString?operator?+?(const?TixmlString?&?a?const?TixmlString?&?b)
{
TixmlString?tmp;
tmp.reserve(a.length()?+?b.length());
tmp?+=?a;
tmp?+=?b;
return?tmp;
}

TixmlString?operator?+?(const?TixmlString?&?a?const?char*?b)
{
TixmlString?tmp;
TixmlString::size_type?b_len?=?static_castlString::size_type>(?strlen(b)?);
tmp.reserve(a.length()?+?b_len);
tmp?+=?a;
tmp.append(b?b_len);
return?tmp;
}

TixmlString?operator?+?(const?char*?a?const?TixmlString?&?b)
{
TixmlString?tmp;
TixmlString::size_type?a_len?=?static_castlString::size_type>(?strlen(a)?);
tmp.reserve(a_len?+?b.length());
tmp.append(a?a_len);
tmp?+=?b;
return?tmp;
}


#endif //?TIxml_USE_STL

?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2018-04-16?09:10??地主快跑\
?????目錄???????????0??2018-04-16?09:12??地主快跑\Bin\
?????目錄???????????0??2018-04-16?09:11??地主快跑\Bin\Save\
?????文件??????????84??2018-04-16?09:08??地主快跑\Bin\Save\GM.xml
?????文件?????????124??2018-04-16?09:08??地主快跑\Bin\Save\npc_1.xml
?????文件?????????295??2018-04-16?09:08??地主快跑\Bin\Save\npc_2.xml
?????文件?????????167??2018-04-16?09:08??地主快跑\Bin\Save\player.xml
?????目錄???????????0??2018-04-16?09:11??地主快跑\Bin\tinyxml\
?????文件????????2507??2011-05-14?19:24??地主快跑\Bin\tinyxml\tinystr.cpp
?????文件????????8198??2011-05-14?19:24??地主快跑\Bin\tinyxml\tinystr.h
?????文件???????37591??2011-05-14?19:24??地主快跑\Bin\tinyxml\tinyxml.cpp
?????文件???????64834??2017-01-13?17:11??地主快跑\Bin\tinyxml\tinyxml.h
?????文件????????1791??2011-05-14?19:24??地主快跑\Bin\tinyxml\tinyxmlerror.cpp
?????文件???????37242??2011-05-14?19:24??地主快跑\Bin\tinyxml\tinyxmlparser.cpp
?????目錄???????????0??2018-04-16?09:11??地主快跑\Bin\UI\
?????文件???????15157??2018-04-11?14:21??地主快跑\Bin\UI\continue.xml
?????文件???????62599??2018-04-11?12:34??地主快跑\Bin\UI\dizhukuaipao.xml
?????文件???????14531??2018-04-11?14:21??地主快跑\Bin\UI\exit.xml
?????文件???????14596??2018-04-11?14:21??地主快跑\Bin\UI\start.xml
?????文件??????274944??2018-04-16?09:12??地主快跑\Bin\地主快跑.exe
?????文件?????1352720??2018-04-16?09:12??地主快跑\Bin\地主快跑.ilk
?????文件?????1748992??2018-04-16?09:12??地主快跑\Bin\地主快跑.pdb
?????目錄???????????0??2018-04-16?09:13??地主快跑\Src\
?????目錄???????????0??2018-04-16?09:13??地主快跑\Src\地主快跑\
?????文件?????????982??2018-04-16?08:54??地主快跑\Src\地主快跑.sln
?????文件???????19456??2018-04-16?09:12??地主快跑\Src\地主快跑.v12.suo
?????文件????????4868??2018-04-11?16:35??地主快跑\Src\地主快跑\Card.cpp
?????文件?????????584??2018-04-11?16:33??地主快跑\Src\地主快跑\Card.h
?????文件?????????293??2018-04-10?11:54??地主快跑\Src\地主快跑\Color.cpp
?????文件?????????112??2018-04-10?11:46??地主快跑\Src\地主快跑\Color.h
?????文件????????1601??2018-04-16?08:21??地主快跑\Src\地主快跑\Cursor.cpp
............此處省略55個(gè)文件信息

評(píng)論

共有 條評(píng)論