Hi ich möchte ein struct erstellen an einer bestimmten Speicheradresse anfängt.
Hier ein teil meines Programmes:
Wie stelle ich sowas an ?
Hier ein teil meines Programmes:
Code:
struct speicher {
int s1;
int s2;
float s3;
}spei;
unsigned adress = 0x2F6BDD0;
int main(void)
{
cout << &spei << endl;
cout << spei.s1 << "\t" << &(spei.s1) << endl;
cout << spei.s2 << "\t" << &(spei.s2) << endl;
cout << spei.s3 << "\t" << &(spei.s3) << endl;
cin>>i;
return 0;
}
Wie stelle ich sowas an ?