美国虚拟号码生成器《美国虚拟信息生成器》

美国信用卡号生成器怎么用

美国虚拟号码生成器《美国虚拟信息生成器》

美国信用卡号生成器:

1、可随机生成姓名、地址、电话等一系列信息

2、可生成美国的3中主流信用卡

3、可导出为TXT文件,用于长期保存!

电话号码生成器的操作方法

海豚号码生成器,操作方法讲解,想要的话,你可以baidu一下它的名字去找。

第一步:选择省份城市,可以单选某个城市,也可以打勾选择其中几个城市,也可以点“全选”,选择所有的城市。

第二步:选择对应的类型,你可以单独选择或者同时选择其中两个,也可以全部都打勾选择。

第三步:设置生成号码的数量,可以设置不同的数量级别,生成的之间不会重复。

第四步:点,开始生成,即可。

——————————分割线———————————-

#includeiostream

using namespace std;

#includestdlib.h

templateclass T

struct BinTreeNode{//链式二叉树结点结构

    T data;

    BinTreeNodeT *leftChild,*rightChild;

    BinTreeNode():leftChild(NULL),rightChild(NULL){ }

    BinTreeNode(T x,BinTreeNodeT *l=NULL,BinTreeNodeT * r=NULL)

            :data(x),leftChild(l),rightChild®{ }

};

template class T

class BinaryTree{//链式二叉树类

public:

    BinaryTree():root(NULL){ }//构造函数

    BinaryTree(T value):RefValue(value),root(NULL){ }//构造函数(NULL结点标志value)

    ~BinaryTree(){ if(root) destroy(root); }//析构函数

    friend istream operator T(istream in,BinaryTreeT Tree);

    void  preOrder(void (*visit)(BinTreeNodeT *p)) //前序遍历,visit是访问函数

    { preOrder(root,visit); }

    void  inOrder(void (*visit)(BinTreeNodeT *p)) //中序遍历

    { inOrder(root,visit); }

    void postOrder(void (*visit)(BinTreeNodeT p)) //后序遍历

    { postOrder(root,visit); } 

    BinaryTree(BinaryTreeT s){ root=Copy(s.root); }//复制构造函数,调用Copy

    bool IsEmpty(){ return root==NULL; }//判树空否

    BinTreeNodeT Parent(BinTreeNodeT* current){//返回父结点

        if(root==NULL || root==current) return NULL;//调用同名保护成员函数

        else return Parent(root,current);

    }

    BinTreeNodeT* LeftChild(BinTreeNodeT* current)//返回左子女

    { return (current!=NULL)?current-leftChild:NULL; }

    BinTreeNodeT* RightChild(BinTreeNodeT* current)//返回右子女

    { return (current!=NULL)?current-rightChild:NULL; }

    int Height(){ return Height(root); }//返回树高度,调用同名保护成员函数

    int Size(){ return Size(root); }//返回树的结点数,调用同名保护成员函数

    BinTreeNodeT* getRoot()const{ return root; }    //取根

    void createBinaryTree();

protected:

    BinTreeNodeT *root;//二叉树的根指针

    T RefValue;//数据输入停止标志,标记NULL结点

    void destroy(BinTreeNodeT *subTree);//p196删除使之为空树

    void CreateBinTree(istream in,BinTreeNodeT *subTree);//P202前序建立二叉树

    void preOrder(BinTreeNodeT *subTree,void (*visit)(BinTreeNodeT *p));//p199前序遍历,visit是访问函数

    void inOrder(BinTreeNodeT *subTree,void (*visit)(BinTreeNodeT *p)); //p199中序遍历,visit是访问函数

    void postOrder(BinTreeNodeT *subTree,void (*visit)(BinTreeNodeT p)); //p200后序遍历,visit是访问函数

    BinTreeNodeT Copy(BinTreeNodeT);//p201复制–?

    BinTreeNodeT Parent(BinTreeNodeT, BinTreeNodeT);

                                        //p196返回父结点,重载函数–?

    int Height(BinTreeNodeT)const;//p200返回树高度,重载函数–?

    int Size(BinTreeNodeT)const;//p200返回树的结点数,重载函数–?

    friend ostream operator T(ostream out,BinaryTreeT Tree);

    void Traverse(BinTreeNodeT,ostream);//p196前序遍历输出–?

    friend bool operator==T(const BinaryTreeT s,const BinaryTreeT t);//判二叉树相等

    BinTreeNodeT createBinaryTree(T* inlist,T* postlist,int i,int j,int k,int l);

};

templateclass T

istream operator (istream in,BinaryTreeT Tree)

{ Tree.CreateBinTree(in,Tree.root);    return in; }//重载操作,输入

templateclass T//后序遍历删除

void BinaryTreeT::destroy(BinTreeNodeT *subTree){

    if(subTree==NULL) return;

    destroy(subTree-leftChild);

    destroy(subTree-rightChild);

    delete subTree; subTree=NULL;

}

//CreateBinTree(递归前序遍历建立二叉树,P202)的实现;

templateclass T

void BinaryTreeT::CreateBinTree(istream in,BinTreeNodeT *subTree)

{

    T item;

    if(!in.eof())

    {

        initem;

        if(item!=RefValue)

        {

            subTree=new BinTreeNodeT(item);

            if(subTree==NULL)

            {cerr”存储分配错误!”endl;exit(1);}

            CreateBinTree(in,subTree-leftChild);

            CreateBinTree(in,subTree-rightChild); 

        }

        else subTree=NULL;

    }

};

//preOrder(递归前序遍历,p199)的实现;

templateclass T

void BinaryTreeT::preOrder(BinTreeNodeT *subTree,void(*visit)(BinTreeNodeT *p))

{

    if(subTree!=NULL)

    {

        visit(subTree);

        preOrder(subTree-leftChild,visit);

        preOrder(subTree-rightChild,visit);

    }

};

//(inOrder(递归中序遍历,p199)的实现;

template class T

void BinaryTreeT::inOrder(BinTreeNodeT *subTree,void(*visit)(BinTreeNodeT *p))

{

    if( subTree!=NULL)

    {

        inOrder(subTree-leftChild,visit);

        visit(subTree);

        inOrder(subTree-rightChild,visit);

    }

};

//postOrder(递归后序遍历,p200)的实现。

templateclass T

void BinaryTreeT::postOrder(BinTreeNodeT *subTree,void(*visit)(BinTreeNodeT *p))

{

    if(subTree!=NULL)

    {

        postOrder(subTree-leftChild,visit);

        postOrder(subTree-rightChild,visit);

        visit(subTree);

    }

};

//Copy(复制,p201)的实现;

templateclass T

BinTreeNodeT *BinaryTreeT::Copy(BinTreeNodeT *orignode)

{

    if(orignode==NULL) return NULL;

    BinTreeNodeT *temp=new BinTreeNodeT;

    temp-data=orignode-data;

    temp-leftChild=Copy(orignode-leftChild);

    temp-rightChild=Copy(orignode-rightChild);

    return temp;

};

//Parent(返回父结点,p196)的实现;

templateclass T

BinTreeNodeT *BinaryTreeT::Parent(BinTreeNodeT*subTree,BinTreeNodeT*current)

{

    if(subTree==NULL) return NULL;

    if(subTree-leftChild==current||subTree-rightChild==current)

        return subTree;

    BinTreeNodeT *p;

    if((p=Parent(subTree-leftChild,current))!=NULL) return p;

    else return Parent(subTree-rightChild,current);

};

//Height(返回树高度,p200)的实现;

templateclass T

int BinaryTreeT::Height(BinTreeNodeT*subTree)const

{

    if(subTree==NULL) return 0;

    else

    {

        int i=Height(subTree-leftChild);

        int j=Height(subTree-rightChild);

        return (ij)?j+1:i+1;

    }

};

//Size(返回树的结点数,p200)的实现;

templateclass T

int BinaryTreeT::Size(BinTreeNodeT*subTree)const

{

    if(subTree==NULL) return 0;

    else return 1+Size(subTree-leftChild)+Size(subTree-rightChild);

};

//输出树,重载

templateclass T

ostream operator(ostream out,BinaryTreeT Tree){

    out”二叉树的前序遍历\n”;

    Tree.Traverse(Tree.root,out);

    outendl;

    return out;

}

//Traverse(前序遍历输出,p196)的实现;

templateclass T

void BinaryTreeT::Traverse(BinTreeNodeT*subTree,ostreamout)

{

    if(subTree!=NULL)

    {

        outsubTree-data’ ‘;

        Traverse(subTree-leftChild,out);

        Traverse(subTree-rightChild,out);

    }   

};

//判二叉树相等

templateclass T

bool operator==(const BinaryTreeTs,const BinaryTreeTt)

{

    return(equal(s.root,t.root))?true:false;

};

//判结点相等

templateclass T

bool equal(BinTreeNodeT*a,BinTreeNodeT*b)

{

    if(a==NULLb==NULL) return true;

    if(a!=NULLb!=NULLa-data==b-data

        equal(a-leftChild,b-leftChild)

        equal(a-rightChild,b-rightChild))

        return true;

    else return false;

};

templateclass T

//主调程序:利用中序序列和后序序列构造二叉树

void BinaryTreeT::createBinaryTree()

{

    int n;

    cout”输入二叉树的结点个数n=“;

    cinn;

    T*inlist=new T[n+1];

    cout”输入二叉树的中序序列:”;

    cininlist;

    Tpostlist=new T[n+1];

    cout”输入二叉树的后序序列:”;

    cinpostlist;

    root=createBinaryTree(inlist,postlist,int i ,int j , int k,int l );

};

template class T

BinTreeNodeT createBinaryTree(T* inlist,T* postlist,int i,int j,int k,int l)

{

    int n;

    BintreeNodep;

    p=(BinTreeNode)malloc(size of(BinTreeNode));

    p-data=(postlist+1);//从后序遍历序列中读取结点信息

    n=1;

    for(;(inlist+n)!=*(postlist+1);n++;)//在中序遍历序列中确定结点的位置

        if(n==i)p-leftChild=NULL;

        else

        p-leftChild=*createBinaryTree(inlist,postlist,i,n-1,k,k+n-i-1);//递归调用左子树

    if(n==j)

        p-rightChild=NULL;

    else

        p-rightChild=*createBinaryTree(inlist,postlist,n+1,j,k+n-i,l-1);//递归调用右子树

    return p;

}

.cpp如下:

#includeiostream

using namespace std;

#include”aaaa.h”

templateclass T//输出一个二叉树结点的数据

void visit(BinTreeNodeT *p){coutp-data;}

void main()

{

    BinaryTreechar BT;

    BT.createBinaryTree();

    cout”前序遍历输出二叉树:\n”;

    BT.preOrder(visit);

    coutendl;

}

有没有美国 加拿大的号码生成器并检测空号推荐一下!

可以试试迈腾科技号码生成器,之前在地产营销公司就是和他们家合作的߅操作简单快捷而且准确率高,能解约不少成本巨划算,登录官网有24小时专属客服一对一解答,你可以试试。

本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。