#include <stdio.h>
#include <stdlib.h>
struct Element
{
int z;
struct Element *next;
}*top,*p,*bottom;
void einfuegen(int zahl);
void ausgabe(void);
int main(void)
{
int i;
int z;
do
{
printf("Ganze Zahl eingeben: (abbrechen mit 0)\n");
scanf("%d",&z);
if(z!=0)
einfuegen(z);
}
while(z!=0);
ausgabe();
}
void einfuegen(int zahl)
{
p=(struct Element*)malloc(sizeof(struct Element));
p->z=zahl;
p->next=NULL;
if(top==NULL)
top=p;
else
bottom->next=p;
bottom=p;
}
void ausgabe()
{
p=top;
while(p!=NULL)
{
printf("%d \t",p->z);
p=p->next;
}
printf("\n");
}
STACK
#include <stdio.h>
#include <stdlib.h>
struct Element
{
int zahl;
struct Element *next;
}*p,*top;
void einfuegen(int z);
void ausgabe();
int loeschen (int z);
int main(void)
{
int n=0; free(p);
top=NULL;
do
{
printf("Ganze Zahl eingeben, abbrechen mit 0: ");
scanf("%d",&n);
if (n!=0) einfuegen(n);
}
while (n!=0);
ausgabe();
printf("\n\nWelche Zahl soll geloescht werden? ");
scanf("%d",&n);
int erfolg=loeschen(n);
if (erfolg==0) printf("\n\nElement nicht gefunden!\n\n");
ausgabe();
}
void einfuegen (int z)
{
p=(struct Element *)malloc(sizeof(struct Element));
p->zahl=z;
p->next=top;
top=p;
}
void ausgabe ()
{
p=top;
do
{
printf("%d\t",p->zahl);
p=p->next;
}
while (p!= NULL);
}
int loeschen (int z)
{
struct Element *nach;
p=top;
nach=top;
do
{
if (p->zahl==z)
{
if (p==top) top=top->next;
nach->next=p->next;
free(p);
return 1;
}
nach=p;
p=p->next;
}
while (p!=NULL);
return 0;
}
#include <stdlib.h>
struct Element
{
int z;
struct Element *next;
}*top,*p,*bottom;
void einfuegen(int zahl);
void ausgabe(void);
int main(void)
{
int i;
int z;
do
{
printf("Ganze Zahl eingeben: (abbrechen mit 0)\n");
scanf("%d",&z);
if(z!=0)
einfuegen(z);
}
while(z!=0);
ausgabe();
}
void einfuegen(int zahl)
{
p=(struct Element*)malloc(sizeof(struct Element));
p->z=zahl;
p->next=NULL;
if(top==NULL)
top=p;
else
bottom->next=p;
bottom=p;
}
void ausgabe()
{
p=top;
while(p!=NULL)
{
printf("%d \t",p->z);
p=p->next;
}
printf("\n");
}
STACK
#include <stdio.h>
#include <stdlib.h>
struct Element
{
int zahl;
struct Element *next;
}*p,*top;
void einfuegen(int z);
void ausgabe();
int loeschen (int z);
int main(void)
{
int n=0; free(p);
top=NULL;
do
{
printf("Ganze Zahl eingeben, abbrechen mit 0: ");
scanf("%d",&n);
if (n!=0) einfuegen(n);
}
while (n!=0);
ausgabe();
printf("\n\nWelche Zahl soll geloescht werden? ");
scanf("%d",&n);
int erfolg=loeschen(n);
if (erfolg==0) printf("\n\nElement nicht gefunden!\n\n");
ausgabe();
}
void einfuegen (int z)
{
p=(struct Element *)malloc(sizeof(struct Element));
p->zahl=z;
p->next=top;
top=p;
}
void ausgabe ()
{
p=top;
do
{
printf("%d\t",p->zahl);
p=p->next;
}
while (p!= NULL);
}
int loeschen (int z)
{
struct Element *nach;
p=top;
nach=top;
do
{
if (p->zahl==z)
{
if (p==top) top=top->next;
nach->next=p->next;
free(p);
return 1;
}
nach=p;
p=p->next;
}
while (p!=NULL);
return 0;
}
Nur noch selten hier.
'Til now, I always let people walk all over me!
From now on, if anyone makes fun of me, I'll kill 'em! Just like that!
From now on, if anyone makes fun of me, I'll kill 'em! Just like that!
Tja der is leider noch in der Testphase und die Lizensen kosten
999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999€uro
Muahahahahhahahhah
Aber du kannst vllt helfen
Ich brauch nämlich noch n RTPorn für den RPG Maker XPorn
Kannste ja eins zusammenstellen
Nicht die Bordell Tilesets vergessen!!!
MFG Monsterbauer
999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999.999€uro
Muahahahahhahahhah
Aber du kannst vllt helfen
Ich brauch nämlich noch n RTPorn für den RPG Maker XPorn
Kannste ja eins zusammenstellen
Nicht die Bordell Tilesets vergessen!!!
MFG Monsterbauer



