Jump to content

Arkadaşlar Typedef Bildirimi Yapınca Hata Alıyorum Neden


semsek313
 Share

Recommended Posts

//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();
}
}
Link to comment
Share on other sites

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ş :D:D 

Edited by FerhatHoney
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...