Visual C++ İçin Login Panel Yapmayı Göstermiştim. Peki Dev C++ için console uygulamasına login panel nasıl ? işte böyle ;
Kullanıcı adı : whisper
Kullanıcı Şifresi : 12345
Kodlar ;
Kullanıcı adı : whisper
Kullanıcı Şifresi : 12345
Kodlar ;
Kod:
#include <iostream>
#include <string>
using namespace std;
/*
Program Yapım : WhisPer*
*/
main () {
system("title Login Panel WhisPer*");
string username, password;
cout << "kullanici adiniz : ";
cin >> username;
cout << "kullanici sifreniz : ";
cin >> password;
if (username=="[COLOR="Red"]whisper[/COLOR]" && password=="[COLOR="red"]12345[/COLOR]") {
cout << "tebrikler! giris yaptiniz.";
}
else {
cout << "hata! kullanici adi veya sifre hatali";
}
cin >> username;
}
Son düzenleme:


