C++ Yardım !!!!
-
#include <iostream>
#include <ctype.h>
#include <conio.h>
using namespace std;
int main()
{
cout << "..::FataL::.. \n";
do{
cout <<"Bir harf girin : \xdb\t" << endl;
islower(getch());
cout <<"\nBuyuk harfse sifir kucuk harf ise 2." << endl;
cout <<"\n!Devam etmek icin c ye basin." << endl;
}while(getch()=='c');
system("PAUSE");
return EXIT_SUCCESS;
}
arkadaşlar hatam nerede bir türlü calıştıramadım su programı :S -
Visual Studio 2008 de Yeni Console Application yarattım, kodu yapıştırdım çalıştı.
yani hata vermedi. ama eğer küçük harf durumunda ekrana 2 yazdıracaksan orda bir if kullanman lazım
yani islower(getch()) yerine if( islower(getch())) cout <<"2"<<<"0"<
system("pause") satırı yerine de
cout <<"\Devam etmek için bir tusa basiniz." << endl;
getchar();kullansan iyi olur. neden dersen system("pause") kullanmak evde yakacak odunun varken mobilyayı şöminede yakarak ısınmaya benzer diyim.
-
teşekkürler
-
#include <iostream>
#include <ctype.h>
#include <conio.h>
using namespace std;
int main()
{
cout << "..::FataL::.. \n";
do{
cout <<"Bir harf girin : \xdb\t" << endl;
cout << islower(getch())<< endl;
cout <<"\nBuyuk harfse sifir kucuk harf ise 2." << endl;
cout <<"\n!Devam etmek icin c ye basin." << endl;
}while(getch()=='c');
system("PAUSE");
return EXIT_SUCCESS;
}cout << islower(getch())<< endl; böle değişiklik yapınca calıştı program
