上一页 1 2 3 4 5 6 7 8 9 ··· 29 下一页
摘要: C++ 字符串字母大小写转换 使用algorithm,里面的tolower(转小写)toupper(转大写) #include <iostream>#include <string>using namespace std;#include <algorithm> int main(){ // 字符串 阅读全文
posted @ 2022-12-01 10:50 江南王小帅 阅读(1123) 评论(0) 推荐(0)
摘要: // 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 江南王小帅 阅读(45) 评论(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 江南王小帅 阅读(315) 评论(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 江南王小帅 阅读(32) 评论(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 江南王小帅 阅读(76) 评论(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 江南王小帅 阅读(33) 评论(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 江南王小帅 阅读(37) 评论(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 江南王小帅 阅读(29) 评论(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 江南王小帅 阅读(40) 评论(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 江南王小帅 阅读(35) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 29 下一页