Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct nod{
- int inf;
- nod *adr;
- };
- void Creare(int a, nod *c){
- nod *c=new nod;
- c->inf=a;
- c->adr=NULL;
- p=c;
- }
- void Inserare(int a, nod *&p){
- nod *c;
- c=new nod;
- c->adr=p->adr;
- c->inf=a;
- p->adr=c;
- }
- void Lista(nod *&q, int s[], int n){
- Creare(q.s[1]);
- for(i=1;i<=n;i++) Inserare(q,s[i]);
- }
- void Sterge (nod &*p){
- nod c;
- c= new nod;
- c=p->adr;
- p->adr=c->adr;
- delete c;
- }
- int main()
- {
- int a;
- nod *c,p;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement