1 / 5

#include <string.h> Char str[]=“maca,karo.kupa,sinek”; Char *mtr; Char ayrac[]=“,.”; Char *parca;

#include &lt;string.h&gt; Char str[]=“maca,karo.kupa,sinek”; Char *mtr; Char ayrac[]=“,.”; Char *parca; main() {parca=strtok(str,ayrac);printf(“%s<br>”,parca); parca=strtok(mtr,ayrac);printf(“%s<br>”,parca); parca=strtok(mtr,ayrac);printf(“%s<br>”,parca); parca=strtok(mtr,ayrac);printf(“%s<br>”,parca);

alder
Télécharger la présentation

#include &lt;string.h&gt; Char str[]=“maca,karo.kupa,sinek”; Char *mtr; Char ayrac[]=“,.”; Char *parca;

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. #include <string.h> Char str[]=“maca,karo.kupa,sinek”; Char *mtr; Char ayrac[]=“,.”; Char *parca; main() {parca=strtok(str,ayrac);printf(“%s\n”,parca); parca=strtok(mtr,ayrac);printf(“%s\n”,parca); parca=strtok(mtr,ayrac);printf(“%s\n”,parca); parca=strtok(mtr,ayrac);printf(“%s\n”,parca); parca=strtok(mtr,ayrac);printf(“%s\n”,parca); }

  2. #include "stdafx.h" #include "stdio.h" #include <string.h> char eng[7][10]={"Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday", "Sunday"}; char trk[7][10]={"Pazartesi","Sali","Carsamba", "Persembe","Cuma","Cumartesi", "Pazar"}; int i; char gun[10]; int main(int argc, char* argv[]) { do { printf("ingilizce gun ismi : "); scanf("%s",gun); for(i=0;i<7;i++) if (!strcmpi(eng[i],gun)) break; if(i>6) printf("gecersiz gun ismi\n\n"); else printf("Turkce karsiligi :%s\n",trk[i]); } while(i>6); return 0; }

  3. #include "stdafx.h" #include "stdio.h" #include <string.h> char harf[27]; int i; int main(int argc, char* argv[]) { for(i=65;i<=90;i++) harf[i-65]=i; harf[i-65]=0; printf("Buyuk harfler : %s\n",harf); printf("Kucuk harfler : %s\n",strlwr(harf)); return 0; }

  4. #include "stdafx.h" #include "stdio.h" #include <string.h> char s[21]="12345678901234567890"; int main(int argc, char* argv[]) { printf("%s\n",s); strset(s,'-'); printf("%s\n",s); return 0; }

  5. Ödev= Ekrandan girilecek bir sayının yazıyla karşılığını ekrana yazan bir program yazınız.

More Related