Search found 1 match

by sahutd
Mon Dec 09, 2013 3:06 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 80210

Re: 673 - Parentheses Balance

#include<cstdio>

using namespace std;
typedef struct
{
int top;
char items[1000];

}stack;
bool isempty(stack *s)
{
if(s->top==-1)
return true;
else
return false;

}
char push(stack *s,int data)
{

s->items[++s->top]=data;
}
char pop(stack *s)
{
if(!isempty(s))
return s->items[s->top ...

Go to advanced search