码迷,mamicode.com
首页 >  
搜索关键字:class    ( 183544个结果
trick::target实现选项卡切换
:target是什么?MDN是这样描述的::target The :target pseudo-class represents the unique element, if any, with >an id matching the fragment identifier of the URI of the document. 在document中,可以设置锚链接,举个粟子:<a href="...
分类:其他好文   时间:2015-06-01 14:49:49    阅读次数:138
【数据结构】栈的应用--数制转换(c++)
头文件: #pragma once #include #include using namespace std; template class SeqStack { public: SeqStack(size_t sz = INIT_SZ); ~SeqStack(); public: bool empty()const; bool full()const; void s...
分类:编程语言   时间:2015-06-01 14:48:35    阅读次数:312
Java中Integer类的详解与用途
java.lang 类 Integer java.lang.Object   java.lang.Number       java.lang.Integer 所有已实现的接口: Serializable, Comparable public final class Integer extends Number implements Comparable In...
分类:编程语言   时间:2015-06-01 14:46:31    阅读次数:103
19、java内存分配 常量池详解
在class文件中,“常量池”是最复杂也最值得关注的内容。 Java是一种动态连接的语言,常量池的作用非常重要,常量池中除了包含代码中所定义的各种基本类型(如int、long等等)和对象型(如String及数组)的常量值还,还包含一些以文本形式出现的符号引用,比如: 类和接口的全限定名; 字段...
分类:编程语言   时间:2015-06-01 14:30:35    阅读次数:101
关于宿舍打分系统API端查询优化
优化前的相关代码RoomController.class.php 1 //带详情的宿舍信息列表,已经完成检查的宿舍 2 //08 3 function team_room_list_with_detail($team_id,$is_finish=true){ 4 // ...
分类:Windows程序   时间:2015-06-01 13:16:42    阅读次数:138
C#中接口
interface IPrint { void Print(); } class A : IPrint { public void Print() { System.Console.WriteLine("A"); } } class B : IPrint { public void...
分类:Windows程序   时间:2015-06-01 13:14:20    阅读次数:118
const(每个对象中的常量), static const(类的编译时常量)
1 #include 2 using namespace std; 3 4 class Values 5 { 6 private: 7 8 //类里的 9 const int cSize; //常量成员的初始化,必须在构造函数中进行,每个对象都有,只是成员常量数据在初...
分类:其他好文   时间:2015-06-01 13:10:48    阅读次数:160
Effective C++:条款28:避免返回 handles 指向对象内部成员
(一)有时候为了让一个对象尽量小,能够把数据放在另外一个辅助的struct中,然后再让一个类去指向它。看以下的代码:class Point {public: Point(int x, int y); void setX(int newVal); void setY(int newVal);};str...
分类:编程语言   时间:2015-06-01 13:10:01    阅读次数:115
Learn Java - Chapter 1 变量(Variables)
java语言定义的变量包含一下四种类型 实例变量(Instance Variables),非静态变量,在Class中声明的field,未使用static声明;? 类变量(Class Variables ),静态变量,在Class中使用static标识;? 本地变量(...
分类:编程语言   时间:2015-06-01 11:47:48    阅读次数:150
C++中虚函数工作原理和(虚)继承类的内存占用大小计算
一、虚继承情况下类的内存大小计算 当每个基类中有多个虚函数时,并且在虚继承的情况下,内存是如何分配的,如何计算类的大小,下面举例说明: #include using namespace std; class A {      public:     int a;     virtual void aa(){}; }; class D { public:...
分类:编程语言   时间:2015-06-01 11:42:24    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!