C++
AI世
这个作者很懒,什么都没留下…
展开
-
Sales_item.h源文件及其使用方法
Sales_item.h源文件及其使用方法 C++ Primer 第五版 第一章 一.复制源文件代码 #ifndef SALESITEM_H #define SALESITEM_H #include #include class Sales_item{ public: Sales_item(const std::string &book):isbn(book),units_sold(0...原创 2019-02-18 19:54:42 · 5671 阅读 · 2 评论 -
HDU 1000 普通A+B
HDUOJ 1000 A+B 2019.3.21.1 Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. Sample Input 1 1 Sample Output 2 #include<iostr...原创 2019-03-21 19:06:03 · 231 阅读 · 0 评论 -
HDU 1001 求n项和
HDUOJ 1001 Sum Problem 2019.3.21.2 In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + … + n. Input The input will consist of a series of integers n, one integer per line. Output For each ...原创 2019-03-21 19:30:19 · 269 阅读 · 0 评论