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

פורסם

תרגיל במבנה נתונים שאני לא מצליחה ואשמח לעזרה:

לדוגמא הוגדרה מחלקה rational

class rational

{

private:

int mone;

int mechane;

public:

rational(int x=1,int y=1);

rational(const rational &r);

void rational::setMone(int x)//פונקציה לקליטת מונה השבר

int rational::getMone(int x)//פונקציה המציגה את מונה השבר

void rational::setMechane(int x)//פונקציה לקליטת מכנה השבר

int rational::getMechane(int x)//פונקציה המציגה את מכנה השבר

void print();//פונקציה להדפסת השבר

void operator+(rational);

void operator-(rational);

void operator*(rational);

void operator/(rational);

void operator=();

};

על אותו עקרון, צריך להגדיר מלחקה מסוג string שתכיל את השדות הבאים (לא משתמשים במצביעם ובזכרון דינמי- זה השלב הבא)

class string

{

private:

char string[256]

public:

dafualt constructor

copy constructor

setString

getString

operator =

};

איך אני מממשת את מחלקה string???

אני ממש נואשת לעזרה. :s05:

תודה לכל העוזרים.

פורסם

2 תראדים מתחת.

ארכיון

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

דיונים חדשים

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.