#include <stdio.h>
#include <stdlib.h>
typedef struct weapon
{
int weaponEquiped;
};
typedef struct player_st
{
char name[9];
weapon *zbran;
};
int main()
{
player_st player;
player.zbran->weaponEquiped=1;
printf("%d", player.zbran->weaponEquiped);
system("pause");
return 0;
}
Kompilator to skompiluje, neviete kde je problem?