You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
struct bla
{
char name[100];
int alter;
bla *next;
} ;
int main()
{
bla *person=(strucht *bla)malloc(sizeof(bla));
strcpy(bla->name,"erster name");
bla->alter=4;
bla->next=(struct *bla)malloc(sizeof(bla));
bla=bla->next;
.
.
.
return 0;
}
Cu Hurra
}
|
Quoted from "hurra"
Hi
scanf("%d",&pstart->alter);
->
scanf("%d",pstart->alter);
Quoted from "hurra"
phupf->folgendes=(struct person*)(sizeof(struct person));
->
phupf->folgendes=(struct person*)malloc(sizeof(struct person);
{
{-