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

פורסם

למה זה מדלג לי על השורה שמסומנת בכוכביות?

	printf("Insert name: ");
gets(TmpCell->Name);
printf("Insert adress: ");
gets(TmpCell->Adress);
printf("Insert ID: ");
scanf("%lu",&TmpCell->ID);
printf("Insert age: ");
scanf("%lu",&TmpCell->Age);
printf("Insert gender: ");
gets(TmpCell->Gender); //**********************
printf("Insert faculty: ");
gets(TmpCell->Faculty);
printf("Insert status: ");
gets(TmpCell->Status);
printf("Insert year: ");
scanf("%lu",&TmpCell->Year);
printf("Insert grades average: ");
scanf("%lu",&TmpCell->GradesAvg);
printf("Insert credit points: ");
scanf("%lu",&TmpCell->CreditPoints);

פורסם

מה זאת אומרת "מדלג"?

בכל מקרה עדיף שתעלה את הקוד המלא.

פורסם
  • מחבר

הקוד המלא ארוך .

אולי אם אני יצרף את הפלט תבין את הכוונה מדלג:

(הפלט מצורף בקובץ)

[attachment deleted by admin]

פורסם

תרשום

flashall();

(יכול להיות שצריך _ לפני שם הפונקציה)

לפני כל GETS.

פורסם
  • מחבר

נכון תודה

פורסם
  • מחבר

למה אני מקבל את השגיאה הזאת על השורה שמסומנת בכוכביות?

c:\users\יעקובי אורן\desktop\project\menus.h(27) : warning C4047: 'function' : 'SPosition' differs in levels of indirection from 'int'

קטעי הקוד הרלוונטים:

	SList SL=MakeEmptyStudentsList(NULL);
CList CL=MakeEmptyCoursesList(NULL);

	switch(x)
{
case '1':
do
{
InsertStudent(SL); //***************
printf("\nInsert another student?(Y/N)\n\n");
}while((c=getch())!='N'&&(c=getch())!='n');
break;

typedef struct student *PtrToStudent;
typedef PtrToStudent SList;
typedef PtrToStudent SPosition;

void InsertStudent(SPosition P)
{
SPosition TmpCell;
TmpCell = (SPosition) malloc(sizeof(struct student)); // casting
if (TmpCell == NULL)
{
perror("Out of Space!");
exit(1);
}
printf("Insert name: ");
fflush(stdin);
gets(TmpCell->Name);
printf("Insert adress: ");
fflush(stdin);
gets(TmpCell->Adress);
printf("Insert ID: ");
scanf("%lu",&TmpCell->ID);
printf("Insert age: ");
scanf("%lu",&TmpCell->Age);
printf("Insert gender: ");
fflush(stdin);
gets(TmpCell->Gender);
printf("Insert faculty: ");
fflush(stdin);
gets(TmpCell->Faculty);
printf("Insert status: ");
fflush(stdin);
gets(TmpCell->Status);
printf("Insert year: ");
scanf("%lu",&TmpCell->Year);
printf("Insert grades average: ");
scanf("%lu",&TmpCell->GradesAvg);
printf("Insert credit points: ");
scanf("%lu",&TmpCell->CreditPoints);
TmpCell->Next = P-> Next;
P->Next = TmpCell;
}

struct student
{
char Name[LEN];
unsigned long ID;
unsigned Age;
char Adress[LEN];
char Gender[LEN];
char Faculty[LEN];
char Status[LEN];
unsigned Year;
unsigned GradesAvg;
unsigned CreditPoints;
SPosition Next;
};

פורסם

איך הצהרת על insert student?

פורסם
  • מחבר
void InsertStudent(SPosition 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.