C++大学教程(第七版)C++ How to Program, Seventh Edition

上传者: longjak | 上传时间: 2023-04-04 21:48:00 | 文件大小: 1.86MB | 文件类型: ZIP
C++大学教程(第七版)的示例源代码,详细而规范。 例:// Fig. 2.5: fig02_05.cpp // Addition program that displays the sum of two integers. #include // allows program to perform input and output // function main begins program execution int main() { // variable declarations int number1; // first integer to add int number2; // second integer to add int sum; // sum of number1 and number2 std::cout << "Enter first integer: "; // prompt user for data std::cin >> number1; // read first integer from user into number1 std::cout << "Enter second integer: "; // prompt user for data std::cin >> number2; // read second integer from user into number2 sum = number1 + number2; // add the numbers; store result in sum std::cout << "Sum is " << sum << std::endl; // display sum; end line } // end function main /************************************************************************** * (C) Copyright 1992-2010 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. * **************************************************************************/

文件下载

资源详情

[{"title":"( 481 个子文件 1.86MB ) C++大学教程(第七版)C++ How to Program, Seventh Edition","children":[{"title":"Pong.cpp <span style='color:#111;'> 12.55KB </span>","children":null,"spread":false},{"title":"Fig17_15.cpp <span style='color:#111;'> 9.44KB </span>","children":null,"spread":false},{"title":"Ball.cpp <span style='color:#111;'> 7.85KB </span>","children":null,"spread":false},{"title":"GradeBook.cpp <span style='color:#111;'> 6.77KB </span>","children":null,"spread":false},{"title":"Withdrawal.cpp <span style='color:#111;'> 6.17KB </span>","children":null,"spread":false},{"title":"ATM.cpp <span style='color:#111;'> 6.15KB </span>","children":null,"spread":false},{"title":"MergeSort.cpp <span style='color:#111;'> 5.79KB </span>","children":null,"spread":false},{"title":"GradeBook.cpp <span style='color:#111;'> 5.49KB </span>","children":null,"spread":false},{"title":"Array.cpp <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"Array.cpp <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"Array.cpp <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"GradeBook.cpp <span style='color:#111;'> 5.14KB </span>","children":null,"spread":false},{"title":"Fig22_17.cpp <span style='color:#111;'> 4.44KB </span>","children":null,"spread":false},{"title":"Fig17_08.cpp <span style='color:#111;'> 4.38KB </span>","children":null,"spread":false},{"title":"BasePlusCommissionEmployee.cpp <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false},{"title":"fig07_25.cpp <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"GradeBook.cpp <span style='color:#111;'> 4.24KB </span>","children":null,"spread":false},{"title":"fig13_23.cpp <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"Date.cpp <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"Deposit.cpp <span style='color:#111;'> 4.09KB </span>","children":null,"spread":false},{"title":"fig08_20.cpp <span style='color:#111;'> 4.06KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"GradeBook.cpp <span style='color:#111;'> 3.85KB </span>","children":null,"spread":false},{"title":"BankDatabase.cpp <span style='color:#111;'> 3.84KB </span>","children":null,"spread":false},{"title":"Hugeint.cpp <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"Fig22_30.cpp <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"Fig22_36.cpp <span style='color:#111;'> 3.66KB </span>","children":null,"spread":false},{"title":"BinarySearch.cpp <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false},{"title":"fig23_08.cpp <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"GradeBook.cpp <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"Fig18_02.cpp <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"fig11_12.cpp <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"fig13_10.cpp <span style='color:#111;'> 3.46KB </span>","children":null,"spread":false},{"title":"Fig22_28.cpp <span style='color:#111;'> 3.46KB </span>","children":null,"spread":false},{"title":"fig06_11.cpp <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false},{"title":"fig13_25.cpp <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"Fig22_35.cpp <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"Fig22_29.cpp <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"fig23_04.cpp <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"Fig22_31.cpp <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"Fig22_19.cpp <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"fig11_08.cpp <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"fig13_05.cpp <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"Fig22_15.cpp <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"Fig20_05.cpp <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"Time.cpp <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false},{"title":"fig06_12.cpp <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"fig14_04.cpp <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"Fig22_14.cpp <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"Fig22_42.cpp <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"fig23_05.cpp <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false},{"title":"Time.cpp <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"Fig22_27.cpp <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"ClientData.cpp <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"ClientData.cpp <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"ClientData.cpp <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"ClientData.cpp <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"Fig22_23.cpp <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"Time.cpp <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"fig06_09.cpp <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"Date.cpp <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"fig21_08.cpp <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"SalesPerson.cpp <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"Fig22_40.cpp <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"fig03_05.cpp <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"fig07_12.cpp <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"Fig22_33.cpp <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"fig03_07.cpp <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"GuessNumber.cpp <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"DeckOfCards.cpp <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"fig07_13.cpp <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"Fig17_13.cpp <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"Paddle.cpp <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"BasePlusCommissionEmployee.cpp <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"ex06_03.cpp <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"HourlyEmployee.cpp <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"HourlyEmployee.cpp <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"fig21_20.cpp <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"Fig22_37.cpp <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"CommissionEmployee.cpp <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"Fig17_14.cpp <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"fig08_13.cpp <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"fig23_13.cpp <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"BasePlusCommissionEmployee.cpp <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"Fig18_06.cpp <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"BasePlusCommissionEmployee.cpp <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"Fig22_22.cpp <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"Employee.cpp <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"Employee.cpp <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"GradeBook.cpp <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"Fig18_01.cpp <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明