摘要:
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 阅读全文
摘要:
我的方式是把结构体中定义的 char * 换成string #include <iostream> #include<string> using namespace std; class Student { public: void setname(string name); void setage 阅读全文
摘要:
C++primer(第五版)1.51练习章节需要有一个Sales_item类,但是给的网站找不到,直接复制下面就好咯: #ifndef SALESITEM_H #define SALESITEM_H #include <iostream> #include <string> class Sales_ 阅读全文
摘要:
从C语言开始正式学习C++,但是一上来输出位数就懵了,查资料才知道C++需要使用 “ setprecision ”函数。自己总结一下。 首先说C++代码 #include <iomanip> //setprecision(n)函数在 iomanip 头文件中 //第一种写法 cout<<setios 阅读全文