摘要: #include <iostream> using namespace std; int main() { short n_short = SHRT_MAX; int n_int = INT_MAX; long n_long = LONG_MAX; long long n_llong = LLONG 阅读全文
posted @ 2021-04-18 10:57 梦之心 阅读(74) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> int DayTosecond(int day); int main() { using namespace std; int day; cout << "请输入天数" << endl; cin >> day; cout << day << "天有" << D 阅读全文
posted @ 2021-04-18 10:07 梦之心 阅读(58) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cmath> void simon(int n);//函数声明 int main(void) { using namespace std; int n; cout << "请输入小狗个数" << endl; cin >> n; simon( 阅读全文
posted @ 2021-04-18 09:34 梦之心 阅读(73) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> //预处理器编译指令#include #include <cmath> int main(void) //函数头 { //函数体开始{ using namespace std; //编译指令 double area; cout << "输入房屋的平方" << 阅读全文
posted @ 2021-04-18 09:15 梦之心 阅读(28) 评论(0) 推荐(0) 编辑