摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>童心少年</title> </head> <body> <h1 onclick = "updateimage()">点击一下</h1> <h1 onclick = " update 阅读全文
posted @ 2025-11-21 19:42 付书恒 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-11-16 09:59 付书恒 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-11-16 09:46 付书恒 阅读(4) 评论(0) 推荐(0)
摘要: 如何使用 CSSCSS 是在 HTML 4 开始使用的,是为了更好的染 HTML 元素而引入的。CSS 可以通过以下方式添加到 HTML 中:● 内联样式- HTML 元素中使用"style"属性● 内部样式表 - HTML 文档头部 <head> 区域使用 <style>元素 来包含 CSS● 外 阅读全文
posted @ 2025-11-16 09:44 付书恒 阅读(9) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-11-16 09:30 付书恒 阅读(7) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>童心少年</title> <style> p{ color:red } </style> </head> <body> <p style="color:blue">假设 y=5, 阅读全文
posted @ 2025-11-15 12:00 付书恒 阅读(4) 评论(0) 推荐(0)
摘要: #include <iostream> #include <set> using namespace std; int main() { set<int> data = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; cout << "初始数据: "; for( 阅读全文
posted @ 2025-10-08 11:31 付书恒 阅读(5) 评论(0) 推荐(0)
摘要: #include <iostream> #include <set> #include <vector> using namespace std; int main() { // 1. 默认构造函数 set<int> emptySet; // 2. 初始化列表(自动去重和排序) set<int> n 阅读全文
posted @ 2025-10-08 11:30 付书恒 阅读(7) 评论(0) 推荐(0)
摘要: #include <iostream> #include <set> using namespace std; int main() { set<int> data = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; cout << " 查找操作详解 " << 阅读全文
posted @ 2025-10-08 11:30 付书恒 阅读(4) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main() { set<int> numbers; cout << " 插入操作详解 " << endl; // 1. insert 单个元素 auto result1 = numbers.inse 阅读全文
posted @ 2025-10-08 11:29 付书恒 阅读(9) 评论(0) 推荐(0)