上一页 1 ··· 77 78 79 80 81
摘要: A. Watermelon time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output One hot summer day Pete and 阅读全文
posted @ 2020-01-14 15:43 Koshkaaa 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 我的方式是把结构体中定义的 char * 换成string #include <iostream> #include<string> using namespace std; class Student { public: void setname(string name); void setage 阅读全文
posted @ 2020-01-12 15:40 Koshkaaa 阅读(641) 评论(0) 推荐(1) 编辑
摘要: C++primer(第五版)1.51练习章节需要有一个Sales_item类,但是给的网站找不到,直接复制下面就好咯: #ifndef SALESITEM_H #define SALESITEM_H #include <iostream> #include <string> class Sales_ 阅读全文
posted @ 2020-01-07 11:35 Koshkaaa 阅读(1083) 评论(0) 推荐(1) 编辑
摘要: 从C语言开始正式学习C++,但是一上来输出位数就懵了,查资料才知道C++需要使用 “ setprecision ”函数。自己总结一下。 首先说C++代码 #include <iomanip> //setprecision(n)函数在 iomanip 头文件中 //第一种写法 cout<<setios 阅读全文
posted @ 2020-01-05 16:29 Koshkaaa 阅读(4276) 评论(1) 推荐(2) 编辑
该文被密码保护。 阅读全文
posted @ 2019-12-28 20:15 Koshkaaa 阅读(106) 评论(0) 推荐(0) 编辑
上一页 1 ··· 77 78 79 80 81