码迷,mamicode.com
首页 >  
搜索关键字:implement stack usin    ( 11956个结果
C语言的观察者模式
/*hdr ** Copyright ... ** AUTHOR MichaelMa ** DATE 4-May-2014 ** DESCRIPTION implement a mode of observer in C ** NOTE may be some bugs ...
分类:编程语言   时间:2014-05-10 09:53:03    阅读次数:679
未处理的异常 stack overflow
今天在编译程序时遇到“0x00e304f7 处有未经处理的异常: 0xC00000FD: Stack overflow”的错误,也就是栈溢出了,google了一下,原来是我申请的一个变量太大了,const int maxnum = 10000; 改小一些就好了。局部变量的定义是在栈中申请空间的,栈溢...
分类:其他好文   时间:2014-05-08 19:53:07    阅读次数:268
STL 之 stack 源码剖析
G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_stack.h 完整列表 /* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its do...
分类:其他好文   时间:2014-05-07 07:40:07    阅读次数:322
LeetCode——LRU Cache
LRU Cache   Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be posi...
分类:其他好文   时间:2014-05-07 07:16:21    阅读次数:316
CareerCup之1.1字符串中字符判重
【题目】 Chapter 1 | Arrays and Strings 原文: 1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures? 译文: 实现一个算法来判断一个字符串中的字符...
分类:其他好文   时间:2014-05-07 04:27:41    阅读次数:312
Cracking the coding interview
CareerCup 目录 Chapter 1 | Arrays and Strings 1.1  Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures? 1.2 Write co...
分类:其他好文   时间:2014-05-07 04:25:44    阅读次数:320
【Leetcode】String to Integer (atoi)
【Question】 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the p...
分类:其他好文   时间:2014-05-07 04:17:18    阅读次数:259
括号匹配问题,用栈实现
用栈实现括号匹配其实是一个很简单的问题,思路在代码注释里面写的很清楚了,只是接口设置的好像不太好。 如果在main里面设置的str不是动态分布的,在linux下就会出错,不知道windows会不会出问题。 kuohao.cpp #include #include "stack.cpp" using namespace std; //仅用于检测(),{},[],其他的符号原理都是一样的 bo...
分类:其他好文   时间:2014-05-07 02:39:17    阅读次数:247
android开发完全退出activity
我们退出Activity可以调用:finish(),system(0),但是这些都只是单单退出单个Activity 也有人会说,直接把进程杀死,这些做法都不是很可取,其实我们翻看api可以发现,Activity 都是放入stack中管理,我们只要把stack清空了,不就完全退出了嘛。要对Activity的stack 管理,就需要了解launchMode的四种状态,这里...
分类:移动开发   时间:2014-05-06 23:40:01    阅读次数:409
初学java之接口基础
1 /* 2 长城牌电视机 3 联想奔月5008PC机 4 */ 5 6 7 package st; 8 //接口回调实例 9 interface ShowMessage10 {11 void 显示商标 (String s);12 }13 class TV implement...
分类:编程语言   时间:2014-05-06 12:53:59    阅读次数:369
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!