lookjapan.COM - IRC ve mIRC dünyasının forumu!

lookjapan.COM - IRC ve mIRC dünyasının forumu! (http://www.lookjapan.com/index.php)
-   C ve C++ (http://www.lookjapan.com/forumdisplay.php?f=148)
-   -   Kelime veya cümle'nin uzunluğunu bulan program (http://www.lookjapan.com/showthread.php?t=2821)

Entrance 25 Şubat 2016 22:22

Kelime veya cümle'nin uzunluğunu bulan program
 
Kodlar Dev C++ta yazılmıştır..

Kod:


#include <stdio.h>
#include <string.h>

void UzunlukBul(char string[], int uzunluk);

int main()

    char hm[1024];
    int uzunbul;
        printf("Bir string girin :"); gets(hm);
        UzunlukBul(hm,uzunbul);
        return 0;
}


void UzunlukBul(char string[], int uzunluk){

uzunluk=strlen(string);       
       
printf("(%s - %d)",string,uzunluk);               
}

İyi forumlar..


All times are GMT +3. The time now is 22:07.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.