xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 2KB
    文件類型: .cpp
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-06-07
  • 語言: C/C++
  • 標(biāo)簽: 字符串??中心對稱??C++??

資源簡介

判斷一個(gè)字符串是否是中心對稱 C++描述

資源截圖

代碼片段和文件信息

#include
using?namespace?std;
int?const?MAXSIZE=50;
int?num;
template?
struct?Node
{
????T?data;
????Node?*next;
};
template?
class?SeqStack
{
private:
????T?data[MAXSIZE];
????int?top;
public:
????SeqStack()
????{
????????top=-1;
????}
????void?Push(T?x);
????T?Top();
};
template?
void?SeqStack::Push(T?x)
{
????if(top==MAXSIZE-1)?throw“上溢“;
????else
????{
????????top++;
????????data[top]=x;
????}
}
template?
T?SeqStack::Top()
{
????if(top!=-1)
????return(data[top--]);
}
template?
class?linklist
{
private:
????Node?*head;
public:
????linklist();
????void?put(SeqStack?a);
????void?show();
};
template?
linklist::linklist()
{
????cout<<“請輸入鏈表數(shù)據(jù),以?$?結(jié)束“<????T?a;
????num=0;
????Node?*s*r;
????head=new?Node;
????head=NULL;
????r=NULL;
????cin>>a;
????while(a!=‘$‘)
????{
????????s=new?Node;
????????s->

評論

共有 條評論