01 2022 档案

摘要:#include <fstream> #include <iostream> #include <cstdlib> using namespace std; // 输出的时候把文件中的 C 换成 C++ void addPlusPlus(ifstream& inStream, ofstream& o 阅读全文
posted @ 2022-01-13 20:12 double64 阅读(38) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <string> #include <cstdlib> #include <fstream> int main() { using namespace std; ifstream inStream; ofstream outStream; i 阅读全文
posted @ 2022-01-13 18:26 double64 阅读(69) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> int main() { using namespace std; int totalCandy, numberOfPeople; double candyPerPerson; totalCandy = 9; numberOfPeople = 2; candy 阅读全文
posted @ 2022-01-13 16:41 double64 阅读(125) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <string> #include <ctime> int main() { using namespace std; // time(0) 都返回自1970年1月1日以来经过的秒数,称为 Unix 时间 srand(time(0)); in 阅读全文
posted @ 2022-01-13 16:32 double64 阅读(47) 评论(0) 推荐(0) 编辑
摘要:叫“魔法配方”吗? #include <iostream> int main() { using namespace std; double price = 75; cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(3) 阅读全文
posted @ 2022-01-12 16:38 double64 阅读(95) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示