- English
- فارسی
19-1
#include <iostream.h> #define TEDAD_NOGHTE 100 struct Noghte { int x; int y; }; struct Mostateel { // int tool, arz; struct Noghte goosheChapPayin; struct Noghte goosheRaastBaalaa; }; void main(void) { struct Noghte noghtehaa[TEDAD_NOGHTE]; struct Mostateel *m; int i; for (i=0 ; i<TEDAD_NOGHTE ; i++) { noghtehaa[i].x = i; noghtehaa[i].y = noghtehaa[i].x * 3; } m->goosheChapPayin.x = 8; (*m).goosheChapPayin.y = 9; }