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

פורסם

שליום לכולם.

אני קצת תקוע ורוצה לנסות להיעזר בכם. אני מביא רק את הקטע הרלוונטי:


int main(){

int arr[] = {5,4,6,9};

cout << arr[0];

}

עד כאן הכל עובד מצוין!

עכשיו אותו דבר רק:


בתוך cls.h

class C1{

int arr[10];

C1();

};

בתוך cls.cpp

#include "cls.h"

C1::C1(){

arr[] = {1,2,4,6,7,8,2,3,0,5};

}

ובמצב כזה אני מקבל הודעות שגיאה:

error C2059: syntax error : ']'

error C2143: syntax error : missing ';' before '{'

error C2143: syntax error : missing ';' before '}'


אז איפה טעיתי (ניסיתי המון אפשרויות כולל לקמפל תחת UNIX)?

ומהי הדרך לאתחל מערכים במצב כזה?

אודה על כל עזרה.

פורסם

מה זה הבאג הזה?

פורסם

כנראה שמשתמשי האקספלורר סובלים מכך. משיחה שהייתה לי עם encoder (עמרי עמוס) נאמר לי: "תשתמש בדפדפן איכותי יותר, קרי נטסקייפ". :-\

במקום לפתור את הבעיה, עוקפים אותה.

פורסם

אני פשוט לא רואה כלום

ריבוע כחול גדול

אין הודעה

אין מחבר הודעה

אין כלום

פורסם

Same as here... :-\

IE6

פורסם

אמרתי לכם שמשתמשי אקספלורר לא יראו משהו (ואני בספק אם במוזילה יראו גם כן).

פורסם

אמרתי לכם שמשתמשי אקספלורר לא יראו משהו (ואני בספק אם במוזילה יראו גם כן).

תתפלא... אני עם מוזילה ואני לא רואה שום בעיה פה :-)

ארכיון

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

דיונים חדשים

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.