摘要: 目录任务1源代码问题1问题2任务2源代码问题1问题2问题3任务3源代码问题1问题2问题3任务4源代码任务6源代码include 任务7源代码、 任务1 源代码 点击查看代码 // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭 阅读全文
posted @ 2026-10-22 15:11 d111kkk 阅读(3) 评论(0) 推荐(0)
摘要: 源代码、 点击查看代码 #include <iostream> #include <cstdlib> #include <ctime> #include <iomanip> using namespace std; int main() { srand(time(0)); int right = 0 阅读全文
posted @ 2026-10-22 15:01 d111kkk 阅读(2) 评论(0) 推荐(0)
摘要: 源代码 include using namespace std; int main() { cout << " a b c d e f g h i j k l m n o p q r s t u v w x y z\n"; for (int i = 1; i <= 26; ++i) { cout < 阅读全文
posted @ 2026-10-22 14:59 d111kkk 阅读(2) 评论(0) 推荐(0)
摘要: 源代码 点击查看代码 #include <iostream> #include <string> #include <algorithm> std::string dec2n(int x, int n = 2); int main() { int x; while (std::cin >> x) { 阅读全文
posted @ 2026-10-22 14:56 d111kkk 阅读(3) 评论(0) 推荐(0)
摘要: 源代码 点击查看代码 #include <iostream> #include <string> #include <algorithm> bool is_palindrome(const std::string &s); bool is_palindrome_ignore_case(const s 阅读全文
posted @ 2026-10-22 14:49 d111kkk 阅读(2) 评论(0) 推荐(0)
摘要: 源代码 点击查看代码 #include <iostream> #include <string> #include <algorithm> #include <cctype> unsigned char func(unsigned char c); void test1(); void test2( 阅读全文
posted @ 2026-10-22 14:41 d111kkk 阅读(1) 评论(0) 推荐(0)
摘要: 源代码 点击查看代码 #include <iostream> #include <vector> #include <algorithm> #include <numeric> #include <iomanip> #include <cstdlib> #include <ctime> // 模板函 阅读全文
posted @ 2026-10-22 14:37 d111kkk 阅读(2) 评论(0) 推荐(0)
摘要: 目录源代码问题1问题2 源代码 点击查看代码 // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostre 阅读全文
posted @ 2026-10-22 14:29 d111kkk 阅读(3) 评论(0) 推荐(0)