נשלח בתאריך: 14 April 2006 בשעה 14:19 | | IP רשוּם
|
|
|
|
מה הבעיה פה?זה ב-C
קוד:
#include <stdio.h> #include <conio.h>
int main() { char d, pass; d = 'maple'; printf("Please put the password\n"); scanf("%c",&pass); if (pass == d) { printf("the password is correct =]\n"); } else { printf("the password isn't correct!\n"); } getch(); return 0; }
|
|
|
אני אמור להכניס מילה ואז התוכנית תגיד אם זה maple או לא,במקרה ולא היא תכתוב the password isn't correct!
אז הבעיה שלי היא שגם כשאני כותב maple וגם כשאני לא,זה כותב the password isn't correct!
אז מישהו יודע מה בעצם הבעיה?
|