10 2022 档案

摘要:// main.cpp // 房费率的问题// #include <iostream>#include <stdio.h>#include "hotel.h"using namespace std; int main(){ int nights; double hotel_rate; int cod 阅读全文
posted @ 2022-10-27 15:29 江南王小帅 阅读(33) 评论(0) 推荐(0) 编辑
摘要:// 把十进制转换成二进制// #include <iostream>#include<stdio.h> using namespace std; void to_binary(unsigned long n); int main(){ unsigned long num; printf(("Ent 阅读全文
posted @ 2022-10-27 13:31 江南王小帅 阅读(306) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>#pragma warning(disable : 4996) void display(char cr, int lines, int width); int main() { int ch; int row, col; while ((ch=getchar()) 阅读全文
posted @ 2022-10-20 15:57 江南王小帅 阅读(26) 评论(0) 推荐(0) 编辑
摘要://divisors.c --使用条件运算符 #include<stdio.h>#pragma warning(disable : 4996)#define COVERAGE 350 int main() { int sq_feet; int cans; printf("Enter number o 阅读全文
posted @ 2022-10-19 09:38 江南王小帅 阅读(67) 评论(0) 推荐(0) 编辑
摘要://divisors.c --统计字符数 单词数 行数 #include<stdio.h>#pragma warning(disable : 4996)#include<stdbool.h>#include<ctype.h>constexpr auto STOP = '|'; int main()  阅读全文
posted @ 2022-10-19 09:00 江南王小帅 阅读(29) 评论(0) 推荐(0) 编辑
摘要://divisors.c --使用嵌套if语句显示一个数的约数 #include<stdio.h>#pragma warning(disable : 4996)#include<stdbool.h> int main() { unsigned long num; unsigned long div; 阅读全文
posted @ 2022-10-18 10:38 江南王小帅 阅读(33) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>#include<string.h> #include<limits.h>#include<float.h>#include<stdio.h>#pragma warning(disable : 4996) using namespace std; int main 阅读全文
posted @ 2022-10-17 16:54 江南王小帅 阅读(24) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>#include<string.h> #include<limits.h>#include<float.h>#include<stdio.h>#pragma warning(disable : 4996) using namespace std; int main 阅读全文
posted @ 2022-10-17 16:44 江南王小帅 阅读(31) 评论(0) 推荐(0) 编辑
摘要:使用嵌套循环,输出如下字符: $$$$$$$$$$$$$$$ #include<iostream>#include<string.h> #include<limits.h>#include<float.h>#include<stdio.h>#pragma warning(disable : 4996 阅读全文
posted @ 2022-10-17 13:21 江南王小帅 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#include<string.h> #include<limits.h>#include<float.h>#include<stdio.h>#pragma warning(disable : 4996) using namespace std; #define LEN 26 int main() 阅读全文
posted @ 2022-10-17 13:15 江南王小帅 阅读(39) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>#include<string.h> #include<limits.h>#include<float.h>#include<stdio.h>#pragma warning(disable : 4996) using namespace std; double p 阅读全文
posted @ 2022-10-17 11:05 江南王小帅 阅读(31) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>#include<string.h> #include<limits.h>#include<float.h>#pragma warning(disable : 4996)#define SIZE 10#define PAR 72 using namespace s 阅读全文
posted @ 2022-10-14 15:00 江南王小帅 阅读(28) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>#include<string.h> #include<limits.h>#include<float.h>#pragma warning(disable : 4996) #define SWC_PER_SEC 60using namespace std; int 阅读全文
posted @ 2022-10-10 11:11 江南王小帅 阅读(15) 评论(0) 推荐(0) 编辑

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