Witam.
Czytałem trochę książek o C++ i Assemblerze i głównie operuję w tych technologiach. W ostatnim czasie zacząłem coś robić w C. Wszystko fajnie działa tylko wprowadziłem do programu dane struktury. Mam jeden błąd o treści: 'h' undeclared here (not in a function) i szperałem na internecie co to znaczy ale do końca nie mogłem trafić na ciekawe wyjaśnienie. Prosił bym o pomoc i wytłumaczenie co tu zaszło.
Kod:
#include <stdio.h>
#include <stdint.h>
struct First {
char Signature[4];
uint32_t Length;
uint8_t Revision;
uint8_t Checksum;
char OEMID[6];
char OEMTableID[8];
uint32_t OEMRevision;
uint32_t CreatorID;
uint32_t CreatorRevision;
};
struct Second
{
struct First h;
uint32_t PointerToOtherSDT[(h.Length - sizeof(h)) / 4];
};
int main() {
printf("Hello world");
return 0;
}
Bardzo dziękuję za każdą pomoc. Pozdrawiam :)