虚数的意义作者:阮一峰有人在Stack Exchange问了一个问题: "我一直觉得虚数(imaginary number)很难懂。 中学老师说,虚数就是-1的平方根。 可是,什么数的平方等于-1呢?计算器直接显示出错! 直到今天,我也没有搞懂。谁能解释,虚数到底是什么? 它有什么用?...
分类:
其他好文 时间:
2015-01-02 12:12:34
阅读次数:
192
在Android开发中,程序Crash分三种情况:未捕获的异常、ANR(Application Not Responding)和闪退(NDK引发错误)。其中未捕获的异常根据logcat打印的堆栈信息很容易定位错误。ANR错误也好查,Android规定,应用与用户进行交互时,如果5秒内没有响应用户的操作,则会引发ANR错误,并弹出一个系统提示框,让用户选择继续等待或立即关闭程序。并会在/data/anr目录下生成一个traces.txt文件,记录系统产生anr异常的堆栈和线程信息。如果是闪退,这问题比较难查,...
分类:
移动开发 时间:
2015-01-01 21:19:32
阅读次数:
366
1 package com.java7.mysnow.main; 2 import java.awt.*; 3 4 public class MySnow { 5 public static void main(String[] args) { 6 Frame w = n...
分类:
其他好文 时间:
2015-01-01 19:44:14
阅读次数:
180
#include
#include
#include
typedef struct Node//定义一个链表结构体
{
int data;
struct Node* pNext;
}NODE,*PNODE;
typedef struct Stack//定义一个栈结构体
{
PNODE pTop;
PNODE pBottom;
}STACK,*PSTACK;
void initStac...
分类:
其他好文 时间:
2015-01-01 18:36:01
阅读次数:
156
最近在做exe体积优化的事情,于是把vc10编译器连接器有关的选项都过了一遍一般情况下,使用/O1做最小体积优化根据msdn介绍,/O1等于/Og /Os /Oy /Ob2 /Gs /GF /Gy,也就是说/O1 会自动开启 /Og、/Os、 /Oy、/GF、/Gs(Control Stack Ch...
分类:
其他好文 时间:
2015-01-01 18:29:42
阅读次数:
274
1 package com.java7.myball.main; 2 import java.awt.*; 3 4 public class MyBall { 5 public static void main(String[] args) { 6 Frame...
分类:
其他好文 时间:
2015-01-01 17:20:14
阅读次数:
290
contentSize、contentInset和contentOffset区别分类:iphone开发2011-12-05 21:4923495人阅读评论(4)收藏举报uiviewios这几个都是在ios程序中,经常会注意到的一些小细节,能否真正了解这些,对写ios程序也有很大的好处。frame 是...
分类:
其他好文 时间:
2015-01-01 16:03:05
阅读次数:
186
题目:(Tree ,Stack)Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3...
分类:
其他好文 时间:
2015-01-01 07:54:28
阅读次数:
116
题目:(Stack)Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in ...
分类:
其他好文 时间:
2015-01-01 06:41:45
阅读次数:
124
使用栈来记录可能的路径,栈顶一直是下一个元素。class BSTIterator {public: stack path; BSTIterator(TreeNode *root) { path = stack(); TreeNode *node = r...
分类:
其他好文 时间:
2015-01-01 00:09:09
阅读次数:
203