这里以一个智能指针类为例,智能指针所指为一个对象。而事实上,STL迭代器的开发均需要重载这两个操作符,上一篇文章分析STL 迭代器中除了要用到template技巧外,还需要重载技巧 1 #include 2 using namespace std; 3 class Screen 4 { 5 ...
分类:
其他好文 时间:
2014-08-10 23:59:30
阅读次数:
532
本文试图解释c++ primer Screen 和 Window_Mgr的例子,为什么将两个类放在两个文件中无法编译?将两个类写在同一个文件中,通过三个例子解释问题:第一种写法问题:编译到Screen时,由于Screen类使用到Window_Mgr的成员函数,虽然前面给出了Window_Mgr的声明...
分类:
数据库 时间:
2014-08-10 18:29:40
阅读次数:
253
1、基本概念 屏幕大小(screen size) —— 屏幕的实际大小,用屏幕对角线长度来衡量(比如3.4寸,3.8寸)。android把屏幕分为以下4种:small,normal,large,extra large 屏幕密度(Screen Density) ——一块实际的屏幕区域有多少个像素,.....
分类:
移动开发 时间:
2014-08-09 23:08:49
阅读次数:
339
Android应用图标应当是一个 Alpha 通道透明的32位 PNG 图片。由于安卓设备众多,一个应用程序图标需要设计几种不同大小,如:LDPI (Low Density Screen,120 DPI),其图标大小为 36 x 36 px。MDPI (Medium Density Screen, ...
分类:
移动开发 时间:
2014-08-09 18:38:58
阅读次数:
258
设备像素,就是我们直觉上觉得"靠谱"的像素,这些像素为所使用的各种设备提供了正规的分辨率,并且其值可以通过(通常情况下)从screen.width/height属性中读出;css像素,就是css自定义的像素,需要注意的是css像素与设备像素不是一回事;如何获取屏幕的尺寸:可以通过使用screen.w...
分类:
移动开发 时间:
2014-08-09 15:32:08
阅读次数:
1698
i have such a long time fall in love with ubuntu , but i found it's much unconfortable for me with a lenovo y460n , that owning a intel display card a...
分类:
其他好文 时间:
2014-08-08 23:39:17
阅读次数:
379
可以在 链接样式中,直接写屏幕的宽度@media screen and (max-width:1880px) { #minm .autocw { width: 1180px; }}@media screen and (max-width:1250px) { #minm .autocw { w...
分类:
Web程序 时间:
2014-08-08 20:54:26
阅读次数:
251
winform当前的屏幕除任务栏外的工作域大小this.Width=System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;this.Height=System.Windows.Forms.Screen.PrimaryScreen.Wo...
Libgdx中有个类Actions, 从它开始顺藤摸瓜就能把哪些简单的Action快速掌握见代码: 1 public class ActionTestScreen implements Screen,InputProcessor{ 2 private Stage stage; 3 p...
分类:
其他好文 时间:
2014-08-06 22:05:22
阅读次数:
309
直接摆代码:1 public class MainGame extends Game{2 @Override3 public void create() {4 this.setScreen(new ScreenOne());5 }6 }代码中ScreenOne...
分类:
其他好文 时间:
2014-08-06 18:34:11
阅读次数:
304