#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <ctype.h>
#define temizle system("cls")
int main()
{
char cumle[21],uzunluk;
int kontrol,i;
char karar;
do{
temizle;
printf("\n\tCumle giriniz: ");
gets(cumle);
uzunluk=strlen(cumle);
kontrol=1;
for(i=0;i<=(uzunluk/2)-1;i++)
{
if(cumle[i]!=cumle[uzunluk-i-1])
kontrol=0;
}
if(kontrol==0)
printf("\n\tGirilen Cumle Polindromik degildir");
else if(kontrol==1)
printf("\n\tGirilen Cumle Polindromiktir");
puts("\n\n\t\tYeni Bir Giris Yapmak Ister misiniz? ( E / H )");
do{
karar=toupper(getch());
}while(karar!='E'&&karar!='H');
}while(karar=='E');
temizle;
printf("\n\n\t\tProgram Sonlandirildi. . .\n\t\t");
system("PAUSE");
return 0;
}
4 Haziran 2010 Cuma
1. Final Sorusu
Kaydol:
Kayıt Yorumları (Atom)
Merhaba böyle bir c programını nasıl yapabılırız yada sizde buna benzer örnek programlar var mı acaba ?
YanıtlaSilTeşekkürler...
Once the text file is opened successfully, your program will provide the following
functionalities in a menu:
1. Find: In selection of this choice, your program will ask the user a word. Once
the user enters the word, then the program will search for this word in the text
file and returns the number of occurrences in the file.
2. Find & Replace: In addition to the previous option, your program will ask two
words the user (word1 and word2). Then the program will search the word1 in
the file and replaces them with word2. In this option, make sure that you open
the file for read and write enable