Jump to content

semsek313

Yeni Üye
  • Posts

    1
  • Joined

  • Last visited

About semsek313

Recent Profile Visitors

200 profile views

semsek313's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. //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(); } }
×
×
  • Create New...