g. surgulaZe, g. janeliZe, i. xuciSvili
g. surgulaZe, g. janeliZe, i. xuciSvili g. surgulaZe, g. janeliZe, i. xuciSvili
struct { /* saerTo informacia */ char name[25]; int age; char sex; /* aqtiuri komponentis Wde */ marital_status ms; /* cvladi nawili */ union { /* ucolo */ /* komponentebi ar aris */ /* coliani */ struct { } char marriage_date[8]; char spouse_name[25]; int no_children; /* ganqorwinebuli */ char date_divorced[8]; } marital_info; } health_record; sadac marital_status tipi, e.i. ms aqtiuri komponentis Wdis tipi aRwerilia rogorc typedef enum {SINGL,MARRIED, DIVORCED} marital_status; qvemoT moyvanilia cvladi struqturis komponentebze mimarTvis ramodenime magaliTi: health_record.name health_record.ms health_record.marital_info.marriage_date 133
2.9. mimTiTeblebi da struqturebi ganvixiloT student struqturis Wde, romlis aRwerac zemoT moyvanili iyo, rogorc: struct student { } char name[25]; int id, age; char sex; new_student mimTiTebeli gansazRvrulia rogorc: struct student *new_student; davuSvaT, rom mexsiereba gamoyofilia iseTi saxiT, rom new_student miuTiTebdes student obieqtze, maSin am obieqtis komponentebze SeiZleba mimarTva Semdegi saxiT: (*new_student).name (*new_student).id (*new_student).age (*new_student).sex ramdenadac mimTiTeblebi xSirad gamoiyenebian struqturebze misaTiTeblad, C enaSi aseTi struqturebis komponentebze mimarTvisaTvis Semotanilia operatori – marjvniv mimarTuli isari _>. magaliTad zemoTmoyvanil struqturis komponentebze mimarTva SeiZleba Caiweros _> operatoriT, Semdegnairad: new_student->name new_student->id new_student->age new_student->sex 2.10. struqturebis masivi struqturebis masivis aRweris procesi masivis nebismieri sxva tipis aRweris analogiuria: struct book libry[MAXBKS]; 134
- Page 83 and 84: max-min=356.65 4. dabeWdeT n-elemen
- Page 85 and 86: #include #include #define n 6 main(
- Page 87 and 88: c masivSi elementebi gaerTianebulia
- Page 89 and 90: 2.3. mimTiTeblebi. mimTiTeblis gamo
- Page 91 and 92: ganvixiloT sailustracio programa: #
- Page 93 and 94: Tu ori mimTiTebeli miuTiTebs erTi d
- Page 95 and 96: if(*(a+i)
- Page 97 and 98: getch(); return 0; } printf("Semoit
- Page 99 and 100: striqonis sigrZe = 16 Tu programaSi
- Page 101 and 102: funqcia strcmp agreTve aRwerilia st
- Page 103 and 104: #include #include int main(void)
- Page 105 and 106: #include #include #include int m
- Page 107 and 108: #include #include int main(void)
- Page 109 and 110: #include #include #include int m
- Page 111 and 112: 2.5. funqciis Seqmna da gamoyeneba
- Page 113 and 114: 2.5.1. funqciis argumentebi formalu
- Page 115 and 116: programis Sedegi Semdegnairad gamoi
- Page 117 and 118: 2.5.2. lokaluri cvladebi funqciaSi
- Page 119 and 120: } extern int ext; printf("Secdomaa.
- Page 121 and 122: mexsierebis klasi saSualebas iZleva
- Page 123 and 124: } for(count = 1;count
- Page 125 and 126: 2. gare statikuri, arsebobis xangrZ
- Page 127 and 128: 2.7.3. dinamiuri obieqtis sicocxlis
- Page 129 and 130: } struqturis-tipis-saxeli; typedef(
- Page 131 and 132: 2.8.1. struqturis komponentebze wvd
- Page 133: mocemuli CamoTvliTi tipis calkeuli
- Page 137 and 138: dasasrulis simbolo, w.S. - nulovan
- Page 139 and 140: "a+" - teqsturi faili ixsneba an iq
- Page 141 and 142: main( ) { } FILE *fi; int age; fi=f
- Page 143 and 144: 2.11.7. funqcia fseek( ) fseek( ) f
- Page 145 and 146: III Tavi. grafikuli reJimi 3.1. gra
- Page 147 and 148: 3.2. organzomilebiani grafika mocem
- Page 149 and 150: move(x[0], ?[0]); for(j=1; j
- Page 151 and 152: literatura 1. g. gogiCaiSvili, g. s
struct {<br />
/* saerTo informacia */<br />
char name[25];<br />
int age;<br />
char sex;<br />
/* aqtiuri komponentis Wde */<br />
marital_status ms;<br />
/* cvladi nawili */<br />
union {<br />
/* ucolo */<br />
/* komponentebi ar aris */<br />
/* coliani */<br />
struct {<br />
}<br />
char marriage_date[8];<br />
char spouse_name[25];<br />
int no_children;<br />
/* ganqorwinebuli */<br />
char date_divorced[8];<br />
} marital_info;<br />
} health_record;<br />
sadac marital_status tipi, e.i. ms aqtiuri komponentis Wdis<br />
tipi aRwerilia rogorc<br />
typedef enum {SINGL,MARRIED, DIVORCED}<br />
marital_status;<br />
qvemoT moyvanilia cvladi struqturis komponentebze mimarTvis<br />
ramodenime magaliTi:<br />
health_record.name<br />
health_record.ms<br />
health_record.marital_info.marriage_date<br />
133