اذهب إلى المحتوى

محمد عنيبة

الأعضاء
  • المساهمات

    32
  • تاريخ الانضمام

  • تاريخ آخر زيارة

آخر الزوار

939 زيارة للملف الشخصي

إنجازات محمد عنيبة

عضو مساهم

عضو مساهم (2/3)

13

السمعة بالموقع

  1. يوجد الكثير من المواقع لعل أبرزها موقع github الشهير وكذلك موقع codepen و30secondsofcode ويمكنك البحث عن المزيد
  2. تأكد من تثبيت الإضافة المناسبة للغة التي تستخدمها جرب ابحث عن IntelliSense أو Auto complete
  3. مكتوب valid بجانب الـ domain هل هذا يعني أنه لا يحتوي على مشاكل
  4. استأجرت استضافة مشتركة تستخدم لوحة تحكم cPanel واجهتني فيها مشكلة وهي أن رسائل البريد الإلكتروني التي أرسلها بها تنتقل للspam هل هناك أي إعدادات معينة يجب القيام؟ أم أن المشكلة من مزود الخدمة
  5. شكرا، أعتقد أني سأتركه هكذا لا داعي لإضافة كينونات جديدة وتعقيده أكثر.
  6. شكرًا، لدي سؤال آخر، هل من الأفضل تحويل صفة نوع هل العقار شقة أو أرض أو محل إلى كينونة أخرى؟
  7. هذا نموذج كينونات علائقي لموقع عقارات لكن نبي نعرف شن العلاقة بين كينونة المفضلة والعقارات هل هي one to many أو many to many
  8. شكرا شكرًا، يبدوا أن هذا الخيار أفضل لم يتغير شيء لكن عمومًا جربت باقي الحلول ونجح الأمر
  9. axios.get('https://timeapi.io/api/Time/current/zone?timeZone=Africa/Tripoli') .then(function (response) { // handle success console.log(response); }) .catch(function (error) { // handle error console.log(error); }); حاولت جلب الوقت الحالي لكن يظهر خطأ Access to XMLHttpRequest at 'https://timeapi.io/api/Time/current/zone?timeZone=Africa/Tripoli' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  10. كيف تنشر أخبار أو مناشير مثلا في موقعك باستخدام asp.net وكيف تنشأ صفحات جديدة لهذه المناشير ديناميكا من المتصفح
  11. في كل المواقع خيار تسجيل الدخول مثلاً ينشأ صفحة جديدة باسم حسابك فيها بياناتك فكيف تم ذلك
  12. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; namespace library { public partial class Form4 : Form { SqlConnection conn = new SqlConnection(); SqlCommand com = new SqlCommand(); SqlDataReader dr; DataTable dt = new DataTable(); public Form4() { conn.ConnectionString = "server=(local);database=library;integrated security=true;"; try { conn.Open(); MessageBox.Show("فُتح"); } catch (Exception ex) { MessageBox.Show(ex.Message); } InitializeComponent(); } private void Form4_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { int first_space_index = textBox1.Text.IndexOf(" "); string first_name=textBox1.Text.Substring(0,first_space_index); string last_name = textBox1.Text.Substring(first_space_index +1); com.Connection = conn; try { if (!string.IsNullOrEmpty(textBox2.Text)) { MessageBox.Show("سيدخل رقم القسم تلقائياً"); textBox2.Text = null; } com.CommandText = "insert into authors (AfirstName,ALastName)values('" + first_name + "','" + last_name + "')"; com.ExecuteNonQuery(); MessageBox.Show("تم"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void button2_Click(object sender, EventArgs e) { com.Connection = conn; if (string.IsNullOrEmpty(textBox1.Text)) { DialogResult resu = MessageBox.Show("هل أنت متأكد من حذف جميع البيانات", "تأكيد", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (resu==DialogResult.OK) { com.CommandText = "delete authors "; com.ExecuteNonQuery(); MessageBox.Show("تم"); } } else { com.CommandText = "delete authors where AID='" + textBox2.Text + "' "; com.ExecuteNonQuery(); MessageBox.Show("تم"); } } private void button3_Click(object sender, EventArgs e) { com.Connection = conn; try { if (!string.IsNullOrEmpty(textBox1.Text)) { int first_space_index = textBox1.Text.IndexOf(" "); string first_name = textBox1.Text.Substring(0, first_space_index); string last_name = textBox1.Text.Substring(first_space_index + 1); ; com.CommandText = "update authors set AfirstName= '" + first_name + "',ALastName='"+last_name+"'where DID='" + textBox2.Text + "'"; com.ExecuteNonQuery(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } MessageBox.Show("تم"); } private void button5_Click(object sender, EventArgs e) { com.Connection = conn; if (string.IsNullOrEmpty(textBox2.Text)) { com.CommandText = "select * from authors"; } else { com.CommandText = "select * from authors where AID= '" + textBox2.Text + "'"; } dr = com.ExecuteReader(); dt.Load(dr); dataGridView1.DataSource = dt; } private void button6_Click(object sender, EventArgs e) { com.CommandText = "select book.* from book,authors where AID= '" + textBox2.Text + "'"; dr = com.ExecuteReader(); dt.Load(dr); dataGridView1.DataSource = dt; } private void button4_Click(object sender, EventArgs e) { Form1 f = new Form1(); f.Show(); this.Hide(); } } } هذا نموذج مربوط بقاعدة البيانات sql server لكنني واجهت مشكلة في زر عرض الكتب التي ألفها مؤلف private void button6_Click(object sender, EventArgs e) { com.CommandText = "select book.* from book,authors where AID= '" + textBox2.Text + "'"; dr = com.ExecuteReader(); dt.Load(dr); dataGridView1.DataSource = dt; } System.InvalidOperationException: 'ExecuteReader: لم تتم تهيئة الخاصية Connection.' فهل فيه حد يعرف المشكلة
  13. #include<iostream> using namespace std; int Size = 10; int a[10], top = -1; int pop(); void del_pop(int[], int i); void push(int[], int); void delprime(int a[]); int main() { int i, k; for (i = 0; i < Size; i++) { cin >> k; push(a, k); } delprime(a); for (i = 0; i < Size; i++){cout << pop() << endl;} } void push(int a[], int k) { if (top == Size - 1)cout << "Stack overflow"; else a[++top] = k; } int pop() { return a[top--]; } void del_pop(int a[], int i) { int top2 = -1, m[10]; while (top >= 0) { if (i != a[top]) { m[++top2] = a[top]; } else Size--; top--; } while (top2 >= 0) { a[++top] = m[top2--]; } } void delprime(int a[]) { int i,flag = 0; while (top >= 0) { for (i = 2; i <= a[top] / 2; i++) { if (a[top] % i == 0) { flag = 1; break; } } if (flag == 0) { del_pop(a, a[top]); } top--; } } هذا برنامج يقوم بحذف الاعداد الأولية من مكدس لكن عند بعد استدعاء دالة حذف الأعداد الأولية تتغير كل القيم للصفر في حلقة التكرار التي تستدعي الدالة pop #include<iostream> using namespace std; int Size = 10; int a[10], top = -1; int pop(); void del_pop(int[], int i); void push(int[], int); void delprime(int a[]); int main() { int i, k; for (i = 0; i < Size; i++) { cin >> k; push(a, k); } delprime(a); } void push(int a[], int k) { if (top == Size - 1)cout << "Stack overflow"; else a[++top] = k; } int pop()
×
×
  • أضف...