04/03/10 13:16
うちだとこれで普通にコンパイル通るんだが‥‥
5.5.1と5.6.4両方とも無問題
#include <iostream>
using namespace std;
struct hoge { int x; int y; };
main() {
hoge sage[16];
sage[0].x = 2;
sage[0].y = 4;
int *p1 = &sage[0].x;
int *p2 = &sage[0].y;
cout << "x:" << *p1 << " y:" << *p2 << endl;
}