07 2017 档案

摘要:对象数组: Coordinate coord[3]; 栈区 Coordinate *p=new Coordinate[3]; 堆区 /* * Coordinate.h * * Created on: 2017年7月13日 * Author: rmbp */ class Coordinate { pu 阅读全文
posted @ 2017-07-13 16:56 淡淡723 阅读(141) 评论(0) 推荐(0)
摘要:c++新特性: 1. 初始化方法: 复制初始化 int x=1024; 直接初始化 int x (1024); 2.变量随用随定义 3.增加bool数据类型 输入输出: cout<<x; cin>>x>>y; cout<<oct<<x<<endl; //oct为8进制,dec为十进制,hex为16进 阅读全文
posted @ 2017-07-11 00:42 淡淡723 阅读(135) 评论(0) 推荐(0)
摘要:DOM查找方法: document.getElementByID("id") document.getElementsByTagName("tag") 返回一个对所有tag标签引用的集合 给元素设置样式: ele.style.styleName=styleValue 设置ele元素的css样式。属性 阅读全文
posted @ 2017-07-09 22:23 淡淡723 阅读(168) 评论(0) 推荐(0)