Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- using namespace std;
- typedef struct{
- int l,e,x;
- struct nod *ant,*urm;
- }NOD;
- NOD *p1,*u1;
- FILE *f=fopen("date.in","r");
- NOD *caut(NOD*p,NOD *u,int e,int c)
- {
- NOD*q;
- q=p;
- while(q!=NULL)
- { if(q1==l&&qc->c>c) return NULL;
- if(q->l>l)return q;
- if(q->l==l&&->c>c)return q;
- q=q->urm;
- }
- }
- void adaug(NOD*&p,NOD*&u,int l, int c, int x)
- {
- NOD*q,*r;
- r=(NOD*)malloc(sizeof(NOD));
- r->ant=r->urm=NULL;
- r->l=l;r->c:r->x=x;
- if(r->l<p->l||r->l==p->l&&r->c<p->c)
- {
- r->urm=p;
- p->ant=r;
- p=r;
- }
- else if(r->l->l||)
- }
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement