עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

חיפוש בינארי על שורה ראשונה במטריצה C

Featured Replies

פורסם
  • מחבר

עליתי על הבעיה-שכחתי return וbraces...

ד"א איך אני מקמפל את זה ב C,פשוט משנה את הסיומת של ה Source?

פורסם

קודם כל כן (הסיומת של קבצי C צריכה להיות c.), אבל באיזה קומפיילר אתה משתמש? יכול להיות שאתה צריך להגדיר ספציפית לקומפיילר להתייחס אליו כקובץ C ולא ++C.

פורסם
  • מחבר

VS 2010..

שיניתי את הסיומת ל.c אני מקבל שגיאות של undeclared identifier..

פורסם

אז הקוד שלך הוא כנראה לא קוד C תקני לחלוטין.

על מה אתה מקבל שגיאה?

פורסם
  • מחבר

כולן על הכרזות טיפוסים....



Error 4 error C2143: syntax error : missing ';' before 'type' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 38
Error 13 error C2143: syntax error : missing ';' before 'type' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 188
Error 14 error C2143: syntax error : missing ';' before 'type' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 189
Error 17 error C2143: syntax error : missing ';' before 'type' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 192
Error 12 error C2143: syntax error : missing ';' before 'for' c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 183
Error 15 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 190
Error 16 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 191
Error 22 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 196
Error 24 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 201
Error 26 error C2065: 'x' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 206
Error 18 error C2065: 'low' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 193
Error 20 error C2065: 'low' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 195
Error 5 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 39
Error 6 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 39
Error 7 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 39
Error 8 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 42
Error 9 error C2065: 'j' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 43
Error 19 error C2065: 'high' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 193
Error 21 error C2065: 'high' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 195
Error 23 error C2065: 'high' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 198
Error 25 error C2065: 'high' : undeclared identifier c:\users\offir\documents\visual studio 2010\projects\tar33\tar33\amir.c 203








פורסם
  • מחבר

חחח בוודאי:

הנה שתי פונקציות שאני מבקבל בהן שגיאה:



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]);
}
}
}




פורסם

ב-C (לפי תקן C90, שכנראה אתה עובד לפיו) מותר להגדיר משתנים רק בתחילת בלוק (מיד אחרי פתיחת סוגריים מסולסלים), כלומר את ההגדרה int j אתה צריך לשים לפני ה-printf. אבל לא בטוח שזו הבעיה, קשה לומר בלי שאר הקוד. יכול להיות שיש לך איזו שורה בתחילת הקובץ שדופקת הכל...

פורסם
  • מחבר

סידרתי הכל בתחילת הבלוק כפי שאמרת וזה עובד..

תודה יואב! ;D

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.