עזרה ב-C
יש לי את הקוד הבא:
יש לי את הקוד הבא:
int a; char b,c; printf("\nBefore we starting the game lets Setting some Options:\n\n"); printf(" What is the Number of the Players?: "); scanf("%d",&a); fflush( stdin ); /*sheerit*/ printf("\n Do Yous want to play with the computer? Y/N: "); scanf("%c",&b); fflush( stdin ); /*sheerit*/ printf("\n Do You want to Use the \"Remainder\"? Y/N: "); scanf("%c",&c); printf("%d %c %c",&a,&b,&c);
עכשיו, כל שלושת הערכים הם הופכים לאות כזאת בגיבריש חוץ מה-INT שהוא נותן לי מספר מוזר אחר ממה שהקלדתי.. מישהו יודע? תודה.