פורסם 2012 בינואר 113 שנים מחבר עליתי על הבעיה-שכחתי return וbraces...ד"א איך אני מקמפל את זה ב C,פשוט משנה את הסיומת של ה Source?
פורסם 2012 בינואר 113 שנים קודם כל כן (הסיומת של קבצי C צריכה להיות c.), אבל באיזה קומפיילר אתה משתמש? יכול להיות שאתה צריך להגדיר ספציפית לקומפיילר להתייחס אליו כקובץ C ולא ++C.
פורסם 2012 בינואר 113 שנים מחבר VS 2010..שיניתי את הסיומת ל.c אני מקבל שגיאות של undeclared identifier..
פורסם 2012 בינואר 113 שנים מחבר כולן על הכרזות טיפוסים....Error 4 error C2143: syntax error : missing ';' before 'type' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 38Error 13 error C2143: syntax error : missing ';' before 'type' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 188Error 14 error C2143: syntax error : missing ';' before 'type' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 189Error 17 error C2143: syntax error : missing ';' before 'type' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 192Error 12 error C2143: syntax error : missing ';' before 'for' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 183Error 15 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 190Error 16 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 191Error 22 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 196Error 24 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 201Error 26 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 206Error 18 error C2065: 'low' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 193Error 20 error C2065: 'low' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 195Error 5 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 39Error 6 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 39Error 7 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 39Error 8 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 42Error 9 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 43Error 19 error C2065: 'high' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 193Error 21 error C2065: 'high' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 195Error 23 error C2065: 'high' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 198Error 25 error C2065: 'high' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 203
פורסם 2012 בינואר 113 שנים מחבר חחח בוודאי:הנה שתי פונקציות שאני מבקבל בהן שגיאה:void FillMat (int F[][MAX_COLS],int lines,int cols){ int i; for(i=0; i<lines; i++) { printf("Line %d:\n",i+1); int j; for(j=0; j<cols; j++) { printf("Enter element %d:\n", j+1); scanf("%d", &F[i][j]); } }}
פורסם 2012 בינואר 113 שנים ב-C (לפי תקן C90, שכנראה אתה עובד לפיו) מותר להגדיר משתנים רק בתחילת בלוק (מיד אחרי פתיחת סוגריים מסולסלים), כלומר את ההגדרה int j אתה צריך לשים לפני ה-printf. אבל לא בטוח שזו הבעיה, קשה לומר בלי שאר הקוד. יכול להיות שיש לך איזו שורה בתחילת הקובץ שדופקת הכל...
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.