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

  • 大小: 744KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-14
  • 語言: C/C++
  • 標簽: C++??大學??教程??

資源簡介

C++ How to Program 9E

資源截圖

代碼片段和文件信息

//?Fig.?F.2:?figF_02.cpp
//?Using?variable-length?argument?lists.
#include?
#include?
#include?
using?namespace?std;

double?average(?int?...?);

int?main()
{
???double?double1?=?37.5;
???double?double2?=?22.5;
???double?double3?=?1.7;
???double?double4?=?10.2;

???cout?<????????<????????<????????<????????<????????<????????<????????<????????<????????<????????<????????<}??//?end?main

//?calculate?average
double?average(?int?count?...?)
{
???double?total?=?0;
???va_list?list;??//?for?storing?information?needed?by?va_start
?
???va_start(?list?count?);

???//?process?variable-length?argument?list
???for?(?int?i?=?1;?i?<=?count;?++i?)
??????total?+=?va_arg(?list?double?);

???va_end(?list?);?//?end?the?va_start
???return?total?/?count;
}??//?end?function?average

/**************************************************************************
?*?(C)?Copyright?1992-2014?by?Deitel?&?Associates?Inc.?and???????????????*
?*?Pearson?Education?Inc.?All?Rights?Reserved.???????????????????????????*
?*????????????????????????????????????????????????????????????????????????*
?*?DISCLAIMER:?The?authors?and?publisher?of?this?book?have?used?their?????*
?*?best?efforts?in?preparing?the?book.?These?efforts?include?the??????????*
?*?development?research?and?testing?of?the?theories?and?programs????????*
?*?to?determine?their?effectiveness.?The?authors?and?publisher?make???????*
?*?no?warranty?of?any?kind?expressed?or?implied?with?regard?to?these????*
?*?programs?or?to?the?documentation?contained?in?these?books.?The?authors?*
?*?and?publisher?shall?not?be?liable?in?any?event?for?incidental?or???????*
?*?consequential?damages?in?connection?with?or?arising?out?of?the???????*
?*?furnishing?performance?or?use?of?these?programs.?????????????????????*
?**************************************************************************/

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-05-30?16:18??Code_Examples\
?????目錄???????????0??2013-05-30?16:18??Code_Examples\appF\
?????目錄???????????0??2012-08-10?11:15??Code_Examples\appF\figsF_02\
?????文件????????2405??2013-03-10?10:43??Code_Examples\appF\figsF_02\figF_02.cpp
?????目錄???????????0??2012-08-10?11:15??Code_Examples\appF\figsF_03\
?????文件????????2124??2013-03-10?10:43??Code_Examples\appF\figsF_03\figF_03.cpp
?????目錄???????????0??2012-08-10?11:15??Code_Examples\appF\figsF_04\
?????文件????????2103??2013-03-10?10:43??Code_Examples\appF\figsF_04\figF_04.cpp
?????目錄???????????0??2012-08-10?11:15??Code_Examples\appF\figsF_06\
?????文件????????2424??2013-03-10?10:43??Code_Examples\appF\figsF_06\figF_06.cpp
?????目錄???????????0??2012-08-10?11:15??Code_Examples\appF\figsF_07\
?????文件????????1515??2013-03-10?10:43??Code_Examples\appF\figsF_07\figF_07.cpp
?????目錄???????????0??2012-08-10?11:15??Code_Examples\appF\figsF_08\
?????文件????????1881??2013-03-10?10:43??Code_Examples\appF\figsF_08\figF_08.cpp
?????目錄???????????0??2012-08-10?11:15??Code_Examples\appF\figsF_09\
?????文件????????2172??2013-03-10?10:43??Code_Examples\appF\figsF_09\figF_09.cpp
?????目錄???????????0??2013-05-30?16:18??Code_Examples\appH\
?????文件????????2485??2011-01-31?13:13??Code_Examples\appH\Account.cpp
?????文件????????1503??2011-01-31?13:16??Code_Examples\appH\Account.h
?????文件????????1922??2011-01-31?13:13??Code_Examples\appH\figH_03.cpp
?????目錄???????????0??2013-05-30?16:18??Code_Examples\appI\
?????文件????????2481??2011-02-11?22:18??Code_Examples\appI\Account.cpp
?????文件????????1503??2011-01-31?13:16??Code_Examples\appI\Account.h
?????文件????????1922??2011-01-31?13:13??Code_Examples\appI\figJ_03.cpp
?????目錄???????????0??2013-05-30?16:18??Code_Examples\appJ\
?????目錄???????????0??2013-03-27?08:01??Code_Examples\appJ\Debugging\
?????文件????????6148??2013-03-26?14:50??Code_Examples\appJ\Debugging\.DS_Store
?????目錄???????????0??2013-03-27?08:01??Code_Examples\appJ\Debugging\Debugging\
?????文件????????2485??2013-03-25?16:31??Code_Examples\appJ\Debugging\Debugging\Account.cpp
?????文件????????1503??2013-03-25?16:31??Code_Examples\appJ\Debugging\Debugging\Account.h
?????文件????????3124??2013-03-26?11:18??Code_Examples\appJ\Debugging\Debugging\Debugging.1
............此處省略702個文件信息

評論

共有 條評論