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

פורסם

הי אני לומד ++C ואני כתבתי תוכנה אבל יש לי בעיה קטנה

זה מה שהתוכנה עושה (זה תירגול):

יש X ו-Y אם X גדול מX, Y ניצח

אם Y גדול Y, X ניצח

אם תיקו שואל שאלה אם באמת תיקו אז אומר OK

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

קיצר הבעיה: כשאני עושה תיקו נגיד 5 ו-5 אז השורה: Y WON יורדת ונכתבת אם השאלה cant be in real score

ויש אותה בעיה למטה מישהו יכול להסביר לי איך אני מוחק את המילה Y WON משורת התיקו

הינה הקוד:

#include <iostream.h>
int main()
{
int x,y;
cout<<"x score:";
cin>>x;
cout<<"y score:";
cin>>y;
{
if(x>y)
cout<<"x won";
else
cout<<"y won";
}
{
if(x==y)
cout<<"cant be in real score:";
cin>>x;
{
cout<<"ok";
}
}
{

if(x>y)
cout<<"know it";
else
cout<<"no";
}
return 0;
}

פורסם
#include <iostream.h>

int main() {
int x,y;

cout << "x score:";
cin >> x;
cout << "y score:";
cin >> y;
if (x > y) {
cout << "x won";
} else if (x < y) {
cout << "y won";
} else {
cout << "cant be in real score:";
cin >> x;
if (x == y) {
cout << "ok";
} else if (x < y) {
cout << "x is bigger";
} else {
cout >> "y is bigger";
}
}
return 0;
}

פורסם
  • מחבר

הקוד מעלי לא עובד

פורסם

למה אתה צריך לצטט את כל הקוד ממקודם... רואים אותו כבר...

וחוץ מזה, מה הבעיה לראות את השגיאה ולתקן... בשורה 22 תהפוך את הכיוון של החצים...

ארכיון

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

דיונים חדשים

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.