עבור לתוכן
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.

בעיה בהכנסת איברים לרשימה מקושרת

Featured Replies

פורסם
  • מחבר

אתחלתי אותם כך :

SPosition P=SL;

כאשר את SL אתחלתי עם makeempty והכנסתי לו איבר ( עם insertstudent) הבעיה מתעוררת באיבר השני שאני מנסה להכניס לו

באיבר הראשון הכל תקין בתכנית.

יש בכלל צורך בP? כי לפי מה שאני מבין כל שינוי בP משנה גם בSL (בכל רשימה מקושרת) אז מה הקטע במצביע SPosition

בכל אופן זה עף לי בפעם השניה שאני מגיע לFindStudent שבתוך הInsertStudent

פורסם
  • מחבר

כך נראת הרשימה בזמן שהוא עף (אמור להיות בה איבר אחד)[br]פורסם בתאריך: 8.10.2007 בשעה 13:33:38


אוקי הסתדרתי מצאתי את הבעיה

תודה.

[attachment deleted by admin]

פורסם

יעזור אם גם תספר לכולם מה היתה הבעיה.

פורסם
  • מחבר

פשוט הורדתי את הקידום. במקום

P=L->Next

עשיתי

P=L

והפלא ופלא :\

 SPosition FindStudent(ElementType X, SList L)  
{
SPosition P;
P=L;
if(!P) return 0;
if(P->ID != X)
return FindStudent(X,P->Next);
else
return P;
}

ארכיון

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

דיונים חדשים

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.