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

פורסם

יש לי את הטבלה הבאה שאני מקבל אותה כסטרינג:

===================================================================

IP Addresses value rate percent

-------------------------------------------------------------------

193.27.93.1 378 0.023606 88.73%

79.178.49.128 425 0.026541 99.77%

188.17.175.201 1 0.000062 0.23%

82.80.114.43 1 0.000062 0.23%

79.0.11.54 1 0.000062 0.23%

68.164.215.248 3 0.000187 0.70%

124.120.70.188 1 0.000062 0.23%

202.115.192.149 1 0.000062 0.23%

192.115.187.185 38 0.002373 8.92%

94.68.133.131 2 0.000125 0.47%

219.90.180.141 1 0.000062 0.23%

===================================================================

מה תהיה הדרך הכי פשוטה לסדר אותה ככה שהאחוזים הגבוהים ביותר של כתובת IP יהיו מסודרים למעלה, שהטבלה תהיה ממוינת לפי הסדר של האחוזים שכתובת IP מסויימת מופיעה

פורסם

לייצר class שמייצג שורה כזאת (לקוח?).

לייצר מערך של כאלה. (אולי ווקטור-כדי לפתור את בעיית הגודל)

לפרק את מחרוזת הקלט ע"פ התו '\n', ולהכניס למערך.

למיין את איברי המערך ע"פ הנתון "אחוז".

ארכיון

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

דיונים חדשים

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.