- 博客(8)
- 收藏
- 关注
转载 3DS Max学习小记录
冻结就是不可被选择。但仍然可视。 隐藏就是隐藏 转载于:https://www.cnblogs.com/df11gcode/p/11483640.html
2019-09-07 22:50:00
145
转载 string排序的奇技淫巧
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string s; cin>>s; cout<<s<<endl; sort(s.b...
2018-06-12 15:19:00
171
转载 HTML表单要点汇总
一、普通表格 1.表格由 <table> 标签来定义。每个表格均有若干行(由 <tr> 标签定义),每行被分割为若干单元格(由 <td> 标签定义)。字母 td 指表格数据(table data)。 2.如需定义边框,则在表格外围添加<table border="宽度"></table> 1 <table bo...
2018-06-07 20:31:00
162
转载 int转换为string形式
使用to_string函数。(C++11标准新增) 代码如下 #include <iostream> // std::cout #include <string> // std::string, std::to_string int main () { std::string pi = "pi is " + ...
2018-05-29 20:47:00
119
转载 C++一些小技巧
1.交换数值:使用swap(A,B)即可。相应头文件为iostream。 2.getline(cin,s)//接受一个字符串,可以接受空格并输出。必须包含头文件#include<cstring>; 3.extern int islower(int c); 用法:#include <ctype.h>功能:判断字符c是否为小写英文字母 4.toupper(...
2018-05-22 21:48:00
155
转载 几种DOM方法
获取特定元素方法: 1.getElementById:返回于那个有给定ID属性值的元素节点对应的对象。参数为ID名称。getElementById("ID名称"); 2.getElementByTagName:返回一个对象数组,每个对象对应文档里有给定标签的一个元素。参数为标签名字。getElementByTagName("标签名字") 3.getElementByClassNam...
2018-05-21 20:52:00
204
转载 C++ string的遍历
对string进行遍历, 太简单了, 就不用迭代器了, 直接下标操作。 要注意的是, string的size和length是一样的, 之所以有两个, 是因为历史缘故。 C语言中的char *确实有点丑陋了, 能不用就不用吧。 看string: 1 #include <iostream> 2 #include <iostream> 3 #i...
2018-05-15 13:48:00
313
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅