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

  • 大小:
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-21
  • 語言: C/C++
  • 標簽: c++??

資源簡介

資源截圖

代碼片段和文件信息

/**************************************************
?*?Essential?C++?--?Stanley?Lippman
?*?Addison-Wesley?
?*?ISBN?0-201-48518-4
?*?homepage:?www.objectwrite.com
?*?email:?slippman@objectwrite.com
?*************************************************/

#include?
#include?
using?namespace?std;

int?ex1_5_string()
{
????string?user_name;

????cout?<????cin?>>?user_name;?

????switch?(?user_name.size()?){
????????case?0:
cout?<?????????????????< break;

??case?1:
cout?<?????????????????<????????????break;

?default:
??????//?any?string?longer?than?1?character
cout?<?????????????????< break;
}
return?0;
}

#include?
#include?
#include?
using?namespace?std;

int?ex1_5_cstyle()
{
????//?must?allocate?a?fixed?size
?const?int?nm_size?=?128;
????char?user_name[?nm_size?];?

????cout?<????cin?>>?setw(?nm_size?)?>>?user_name;?

????switch?(?strlen(?user_name?))
????{?
//?case?labels?the?same?for?0?1?
case?127:
//?maybe?string?was?truncated?by?setw()
cout?< ?< ?< ?//?no?break?--?we?fall?through?...
? default:
????????//?the?127?case?drops?through?to?here?--?no?break
cout?<?????????????????????< break;
}
return?0;
}

#include?
#include?
using?namespace?std;

void?ex1_6_vector()?
{
????vector?ivec;
????int?ival;

????while?(?cin?>>?ival?)?
????????????ivec.push_back(?ival?);

????//?we?could?have?calculated?the?sum?as?we?entered?the
????//?values?but?the?idea?is?to?iterate?over?the?vector?...
int?sum?=?0;
????for?(?int?ix?=?0;?ix? {
??cout?<??????????sum?+=?ivec[?ix?];?}

????int?average?=?sum?/?ivec.size();
????cout?<?????????<?????????<}

void?ex1_6_array()?
{
????const?int?arr_size?=?128;
int?ia[?arr_size?];
????int?ival?icnt?=?0;

????while?(?cin?>>?ival?&&?icnt?????????????ia[?icnt++?]?=?ival;
???????????
????//?icnt?is?1?greater?than?number?of?elements!
int?sum?=?0;
????for?(?int?ix?=?0;?ix???????????sum?+=?ia[?ix?];

????int?average?=?sum?/?icnt;
????cout?< ?<?????????<?????????<}

#include?
#include?

void?ex1_xtra1()
{
vector?sp_vec;
string?st;

cout?<

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????366333??1999-12-07?13:25??codeEssential\Appendix.pdf

?????文件???????4471??1999-12-07?08:06??codeEssential\chapter1\ch1solutions\ch1solutions.dsp

?????文件????????547??1999-12-07?01:04??codeEssential\chapter1\ch1solutions\ch1solutions.dsw

?????文件??????41984??1999-12-07?13:04??codeEssential\chapter1\ch1solutions\ch1solutions.ncb

?????文件??????54784??1999-12-07?13:04??codeEssential\chapter1\ch1solutions\ch1solutions.opt

?????文件???????5157??1999-12-07?12:58??codeEssential\chapter1\ch1solutions\ch1solutions.plg

?????文件????????371??1999-12-07?13:01??codeEssential\chapter1\ch1solutions\input.txt

?????文件????????368??1999-12-07?13:04??codeEssential\chapter1\ch1solutions\input.txt.sort

?????文件???????5970??1999-12-07?13:13??codeEssential\chapter1\ch1solutions\main.cpp

?????文件????????124??1999-12-07?01:09??codeEssential\chapter1\ch1solutions\text.sort

?????文件????????114??1999-12-07?12:59??codeEssential\chapter1\ch1solutions\text.txt

?????文件????????112??1999-12-07?13:02??codeEssential\chapter1\ch1solutions\text.txt.sort

?????文件???????7943??1999-12-07?13:13??codeEssential\chapter1\chap1\ch1.cpp

?????文件???????3344??1999-12-07?13:14??codeEssential\chapter1\chap1\ch1.h

?????文件????????491??1999-12-07?13:14??codeEssential\chapter1\chap1\ch1_main.cpp

?????文件???????4393??1999-12-06?08:18??codeEssential\chapter1\chap1\chap1.dsp

?????文件????????533??1999-12-06?08:14??codeEssential\chapter1\chap1\chap1.dsw

?????文件??????33792??1999-12-06?08:18??codeEssential\chapter1\chap1\chap1.ncb

?????文件??????53760??1999-12-06?08:18??codeEssential\chapter1\chap1\chap1.opt

?????文件???????1282??1999-12-06?08:16??codeEssential\chapter1\chap1\chap1.plg

?????文件???????6359??2017-02-23?14:42??codeEssential\chapter1\chap1\chap1.vcxproj

?????文件???????1113??2017-02-23?14:42??codeEssential\chapter1\chap1\chap1.vcxproj.filters

?????文件???????6905??1999-12-07?13:15??codeEssential\chapter2\ch2solutions\ch2main.cpp

?????文件???????3460??1999-12-07?08:06??codeEssential\chapter2\ch2solutions\ch2solutions.dsp

?????文件????????547??1999-12-07?08:06??codeEssential\chapter2\ch2solutions\ch2solutions.dsw

?????文件??????33792??1999-12-07?08:09??codeEssential\chapter2\ch2solutions\ch2solutions.ncb

?????文件??????53760??1999-12-07?08:09??codeEssential\chapter2\ch2solutions\ch2solutions.opt

?????文件???????3760??1999-12-07?08:09??codeEssential\chapter2\ch2solutions\ch2solutions.plg

?????文件???????9140??1999-12-07?13:15??codeEssential\chapter2\chap2\c2_main.cpp

?????文件???????4274??1999-12-06?08:37??codeEssential\chapter2\chap2\chap2.dsp

............此處省略126個文件信息

評論

共有 條評論