c++编程错误 帮忙改一下

来源:百度知道 编辑:UC知道 时间:2024/06/06 17:19:18
#include<iostream>
using namespace std;
typedef int ElemType ;

class seqstrack
{
public:
int strack[50];
int top;
int time1[50];
int time2[50];
void gettop(seqstrack &s);
void instrack(seqstrack &s);
void push(seqstrack &s,int x,int y);
void pop(seqstrack &s,int m);
bool empty(seqstrack &s);
bool noempty(seqstrack &s);
void sb(seqstrack &s);

};
void seqstrack::instrack(seqstrack &s)
{
s.top=0;
}

void seqstrack::push(seqstrack &s,int x ,int y)
{
if(s.top==49) cout<<"overflow";
else
{
s.top++;
s.strack[s.top]=x;
s.time1[s.top]=y;
}
}
void seqstrack::pop(seqstrack &s,int m)
{
if(s.top==0) cout<<"underfloe";
else
{
cin>>m;
s.time2[s.top ]=m;
cout<<" gaiche ting de shijian wei :"<<s

#include<iostream>
using namespace std;
typedef int ElemType ;

class seqstrack
{
public:
int strack[50];
int top;
int time1[50];
int time2[50];
void gettop(seqstrack &s);
void instrack(seqstrack &s);
void push(seqstrack &s,int x,int y);
void pop(seqstrack &s,int m);
bool empty(seqstrack &s);
bool noempty(seqstrack &s);
void sb(seqstrack &s);

};
void seqstrack::instrack(seqstrack &s)
{
s.top=0;
}

void seqstrack::push(seqstrack &s,int x ,int y)
{
if(s.top==49) cout<<"overflow";
else
{
s.top++;
s.strack[s.top]=x;
s.time1[s.top]=y;
}
}
void seqstrack::pop(seqstrack &s,int m)
{
if(s.top==0) cout<<"underfloe";
else
{
cin>>m;
s.time2[s.top ]=m;
cout<<" gaiche ting de shijian wei :"&l