semsek313 Posted November 15, 2020 Share Posted November 15, 2020 //arkadaşlar kod bu yardımlarınızı bekliyorum ilgilendiğiniz için teşekkürler #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #include <windows.h> void gotoxy(int x, int y) { COORD CRD; CRD.X = x; CRD.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), CRD); } typedef struct sifre//typedef i silince { char pass[25]; }pas; int main() { SetConsoleTitle("Student Management System | DIU"); system("color 9f"); gotoxy(42, 8); printf("-------Giris Paneli-------"); gotoxy(42, 10); printf("____________________________________"); gotoxy(42, 11); printf("|\lütfen sifre : |"); gotoxy(42, 12); printf("|__________________________________|"); gotoxy(65, 11); int k = 0; char c[50]; int i; while (k<10) { c[k] = getch(); char s = c[k]; if (s== 13) { break; } else printf("*"); } c[k] = '\0'; FILE* fp = fopen("password.txt", "r+"); //fgets(pas.pass, 25, fp); //if (strcmp(pas.pass,c) == 0) ve alttaki yerine bunları yazınca oluyor pas deger1;//bu da silinecek fgets(deger1.pass, 25, fp);//bu if (strcmp(deger1.pass,c) == 0)//ve bu { system("cls"); gotoxy(10, 3); printf("<<<< Loading Please Wait >>>>"); for (i = 0; i < 5; i++) { printf("\t(*_*)"); Sleep(500); } printf(" \n\n\n\n\n\t\t\t\t\t * * * * * * * *"); printf("\n\n\t\t\t\t\t * *"); printf("\n\n\t\t\t\t\t * Welcome *"); printf("\n\n\t\t\t \t\t * *"); printf("\n\n\t\t\t\t\t * * * * * * * *"); printf("\n\n\n\n\n\t\t\t\t\tPress any key to continue...... "); getch(); } else { printf("Wrong Password . Get Out"); getch(); } } Quote Link to comment Share on other sites More sharing options...
FerhatHoney Posted November 15, 2020 Share Posted November 15, 2020 (edited) semsek313, 2 saat önce yazdı: printf("|\lütfen sifre : |"); printf("| lütfen şifre : |"); olarak değiştirebilirsin '\' compiler slash sembolunda hata verdi birde C yazılım diline hakim değilim sadece yorum yaptım kardesim. onun dışında get out kısmı güzel olmuş Edited November 15, 2020 by FerhatHoney Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.