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

פורסם

שלום

לפני כמה זמן התחלתי ללמוד C ויש דבר שאני לא מוצא בשום מדריך

איך אני יכול שהמחשב יקלוט אותיות?

נגיד כמו שיש

int num;
if(num<4)
{ }

איך אני עושה ככה אבל באותיות..?

נגיד שיקלוט שם

וגם,כמו שאני כותב אח"כ

printf ("%d", num)

מה אני שם במקום %D שיהיה אות?

תודה!

פורסם
  • מחבר

כיצד אני שם משפט ולא אות?

באתר כתוב INT אבל מה אני כותב במקום %C?

פורסם

int x;
scanf("%d", &x );

נא לקרוא על הפונקציה scanf ועל printf

פורסם

אולי אתה מתכוון לקלוט תו עם GETCHAR ולהציבו (=) במשתנה מסוג INT? זה יתן בו את הקוד אסקי שלו.

הנה ככה:

#include <stdio.h>

void main()
{
int x;
x=getchar();
putchar(x);
}

פורסם

או שהוא התכוון:


char str[255];
scanf("%s", str);
printf("%s", str);

פורסם
  • מחבר

או שהוא התכוון:


char str[255];
scanf("%s", str);
printf("%s", str);

בדיוק לזה התכוונתי

תודה רבה

פורסם

או שהוא התכוון:


char str[255];
scanf("%s", str);
printf("%s", str);

צריך בקוד זה להוסיף אינקלוד לספריית string

פורסם

צריך ל- stdio.h ולא ל string.h.

scanf וprintf נמצאות בstdio.h.

פורסם

צריך ל- stdio.h ולא ל string.h.

scanf וprintf נמצאות בstdio.h.

כן טעות שלי, בדיוק בזמן שהגבתי הייתי במהלכם של שיעורי בית בשפת C במחרוזות אז התבלבלתי.

פורסם

תקרא על מערכים ותוכל לקלוט שמות ולבצע עליהן מניפולציות ביתר קלות.

הכי מומלץ מערכים.

ארכיון

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

דיונים חדשים

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.