g. surgulaZe, g. janeliZe, i. xuciSvili
g. surgulaZe, g. janeliZe, i. xuciSvili g. surgulaZe, g. janeliZe, i. xuciSvili
} return 0; strcmp – ori striqonis Sedareba leqsikografuli mimdevrobiT. gansazRvra: int strcmp(s1,s2) char *s1, *s2; magaliTi 3: #include #include #include int main(void) } { char *buf1 = "aaa", *buf2 = "bbb", *buf3 = "ccc"; int ptr; clrscr(); ptr = strcmp(buf2, buf1); if (ptr > 0) else printf("buffer 2 is greater than buffer 1\n"); printf("buffer 2 is less than buffer 1\n"); ptr = strcmp(buf2, buf3); if (ptr > 0) else printf("buffer 2 is greater than buffer 3\n"); printf("buffer 2 is less than buffer 3\n"); getch(); return 0; strncmp – SevadaroT ori striqonis pirveli n simbolo gansazRvra: int strncmp(s1,s2, n) char *s1, *s2; int n; magaliTi 4: 103
#include #include #include int main(void) { } char *buf1 = "aaabbb", *buf2 = "bbbccc", *buf3 = "ccc"; int ptr; clrscr(); ptr = strncmp(buf2,buf1,3); if (ptr > 0) else printf("buffer 2 is greater than buffer 1\n"); printf("buffer 2 is less than buffer 1\n"); ptr = strncmp(buf2,buf3,3); if (ptr > 0) else printf("buffer 2 is greater than buffer 3\n"); printf("buffer 2 is less than buffer 3\n"); getch(); return(0); strcpy gadavakopiroT s2 striqoni s1 striqonSi. gansazRvra: char *strcpy(s1,s2) char *s1, *s2; magaliTi 5: #include #include #include int main(void) { clrscr(); char string[10]; 104
- Page 53 and 54: ciklis tani ar Sesruldeba, marTva g
- Page 55 and 56: #include /* evklides algoriTmi */ m
- Page 57 and 58: programis muSaobis Sedegebi: 1). Se
- Page 59 and 60: Sesruleba (1/0)? "); romlis Semdega
- Page 61 and 62: 3. Tu gamosaxuleba_2-s mniSvneloba
- Page 63 and 64: for( ; ; ) printf("usasrulo cikli\n
- Page 65 and 66: if(b) printf("martivia"); else prin
- Page 67 and 68: 1.11. simboluri Setana-gamotana C-S
- Page 69 and 70: char ch; return 0; } printf("Seitan
- Page 71 and 72: moviyvanoT programa, romelic klavia
- Page 73 and 74: #include #include main() { } char c
- Page 75 and 76: main() { } { char p; while ((p = ge
- Page 77 and 78: II Tavi. monacemTa struqturirebuli
- Page 79 and 80: magaliTad, Tu mocemulia aRwera char
- Page 81 and 82: ganvixiloT masivis gamoyenebis ramd
- 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: #include #include int main(void)
- 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 and 134: mocemuli CamoTvliTi tipis calkeuli
- Page 135 and 136: 2.9. mimTiTeblebi da struqturebi ga
- 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
#include <br />
#include <br />
#include <br />
int main(void)<br />
{<br />
}<br />
char *buf1 = "aaabbb", *buf2 = "bbbccc", *buf3 = "ccc";<br />
int ptr;<br />
clrscr();<br />
ptr = strncmp(buf2,buf1,3);<br />
if (ptr > 0)<br />
else<br />
printf("buffer 2 is greater than buffer 1\n");<br />
printf("buffer 2 is less than buffer 1\n");<br />
ptr = strncmp(buf2,buf3,3);<br />
if (ptr > 0)<br />
else<br />
printf("buffer 2 is greater than buffer 3\n");<br />
printf("buffer 2 is less than buffer 3\n");<br />
getch();<br />
return(0);<br />
strcpy gadavakopiroT s2 striqoni s1 striqonSi.<br />
gansazRvra: char *strcpy(s1,s2)<br />
char *s1, *s2;<br />
magaliTi 5:<br />
#include <br />
#include <br />
#include <br />
int main(void)<br />
{<br />
clrscr();<br />
char string[10];<br />
104