import java.util.Stack;
import java.util.Scanner;
public class Evaluate {
	public static void main(String[] args) {
		Stack ops=new Stack();
		Stack vals=new Stack();
		Scanner cin=new  Scanner(Syste...
                            
                            
                                分类:
其他好文   时间:
2014-05-12 06:23:04   
                                阅读次数:
336
                             
                    
                        
                            
                            
                                思路:简单的匹配操作,利用栈。
Code:
#include
#include
char stack[135];
int main()
{
 int n;
 scanf("%d",&n);
 getchar();
 while(n-->0)
 {
  memset(stack,0,sizeof(stack));
  char c;
  int top=0;
  int flag=1;...
                            
                            
                                分类:
其他好文   时间:
2014-05-11 20:19:34   
                                阅读次数:
376
                             
                    
                        
                            
                            
                                import java.util.Iterator;
import java.util.Scanner;
public class Stack implements Iterable {
	private Node first;// 栈顶
	private int N;// 元素数量
	// 定义结点的嵌套类
	private class Node{
		Item item;
		Node nex...
                            
                            
                                分类:
其他好文   时间:
2014-05-11 13:20:22   
                                阅读次数:
257
                             
                    
                        
                            
                            
                                //#include 
#include 
#include 
//using namespace std;
//const int MAXN=10;
//int Stack[MAXN];
stack s;
class Solution {
public:
    int getNumber(int x)
    {
        //int lengthOfStack=0;...
                            
                            
                                分类:
其他好文   时间:
2014-05-10 04:45:29   
                                阅读次数:
231
                             
                    
                        
                            
                            
                                程序员阿士顿的故事2011-03-19 21:37:51前几天有人在 Stack Exchange 
上提了一个问题 How can a new programmer impress the software engineer 
(boss)?(作为新手程序员如何给软件工程师出身的老板留下好印象?),J...
                            
                            
                                分类:
其他好文   时间:
2014-05-10 00:00:32   
                                阅读次数:
583
                             
                    
                        
                            
                            
                                那么Cowboy是什么呢?Cowboy is a small, fast and 
modular HTTP server written in Erlang.其定位非常明确:Cowboy aims to provide a complete 
HTTP stack in a small code ba...
                            
                            
                                分类:
Web程序   时间:
2014-05-09 23:06:24   
                                阅读次数:
411
                             
                    
                        
                            
                            
                                没考虑到的情况有:input: [, expected: false; 语法上也犯了错误: 
我定义的stack的泛型为char,泛型不能为primitive datatype,Primitive types such ascharcannot be 
used as type parameters i...
                            
                            
                                分类:
其他好文   时间:
2014-05-09 09:19:01   
                                阅读次数:
252
                             
                    
                        
                            
                            
                                #include#include#include #include 
//使用库函数exit()using namespace std;templateclass Stack{ private: Type*data; 
//栈元素数组 int maxSize; /...
                            
                            
                                分类:
其他好文   时间:
2014-05-09 07:27:40   
                                阅读次数:
294
                             
                    
                        
                            
                            
                                实验环境:intel x386
 
一。要求:将3000H单元开始置数为00H-0FH
SSTACK	SEGMENT STACK
	  	DW 32 DUP(?)
SSTACK	ENDS
CODE	SEGMENT
		ASSUME CS:CODE, SS:SSTACK
START:	PUSH DS
	XOR AX, AX
	MOV DS, AX
	MOV SI, 3000H
	MOV CX...
                            
                            
                                分类:
编程语言   时间:
2014-05-09 06:33:53   
                                阅读次数:
372
                             
                    
                        
                            
                            
                                题目如下:
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the pile.
What a wonderful v...
                            
                            
                                分类:
其他好文   时间:
2014-05-09 06:20:44   
                                阅读次数:
396