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

Hamada Sayed

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

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

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

  • عدد الأيام التي تصدر بها

    4

أجوبة بواسطة Hamada Sayed

  1. السلام عليكم.

     

    ايقونه الارسال خاصيه الhref لها يكون محتواها رابط لصفحه علي السرفر تظهر لك فورم الارسال.

    <a href="/showbox.php?user=username">send message</a>

    يكون محتوي الصفحه الفورم الموجود في الاعلي.

    واضف $_GET["user"] في خانه المستقبل.

    وفي صفحه الارسال احصل علي الايميل عن طريق اسم المستخدم من قاعده بيانات المستخدمين الموجوده في الموقع.

  2. السلام عليكم.

     

    ايقونه الارسال خاصيه الhref لها يكون محتواها رابط لصفحه علي السرفر تظهر لك فورم الارسال.

    <a href="/showbox.php?user=username">send message</a>

    يكون محتوي الصفحه الفورم الموجود في الاعلي.

    واضف السطر التالي داخل الفورم.

    <input type="hidden" name="to" value="اسم المستخدم" />

  3. ممكن بهذا الشكل.

     

    #include <iostream>


    using namespace std;

    #define colleges 7
    #define OtherOptionsRow 1
    #define OtherOptionsCol 1

    char size[4][25] = {
        "Small", "Medium", "Large", "XLarge"
    };

    unsigned int savedata[colleges + OtherOptionsRow][4 + OtherOptionsCol], TotalAll = 0;
    int main(int c, char **g)
    {
        // Input & Calc
        for (int college = 0; college < colleges; college++)
        {
            cout << endl << "College Details ( " << college+1 << " )" << endl;
            savedata[college][4] = 0;
            for (int sizeidx = 0; sizeidx < 4; sizeidx++)
            {
                 cout << "\t" << "Count Size " << size[sizeidx] << " ";
                cin >> savedata[college][sizeidx];
                cout << savedata[college][sizeidx];
                savedata[college][4] += savedata[college][sizeidx];
            }

        }
        cout << endl << endl;

        // Output
        cout << "\t" << "\t" << "\t";
        for (int college = 1; college <= colleges; college++)
        {
            cout << college << "\t";
        }
        cout << "Total" << endl;
        
        int sizeidx = 0;
        for (; sizeidx < 4; sizeidx++)
        {
            cout << size[sizeidx] << "\t\t\t";
            savedata[colleges][sizeidx] = 0;
            for (int college = 0; college < colleges; college++)
            {
                savedata[colleges][sizeidx] += savedata[college][sizeidx];
                cout << savedata[college][sizeidx] << "\t";
            }
            cout << savedata[colleges][sizeidx] << endl;
        }
        cout << "College Total\t\t\t";
        for (int college = 0; college < colleges; college++)
            {
                TotalAll += savedata[college][sizeidx];
                cout << savedata[college][sizeidx] << "\t";
            }
        cout << endl << "Total Quantity On Hand  " << TotalAll << endl;

    }


     

    • أعجبني 1
  4. بتاريخ On ١٥‏/١٢‏/٢٠١٨ at 17:28 قال seid hussein:

    SELECT message FROM message WHERE id='5' AND id ='6

    لديك مشكله اخري .

    التنصيص الفردي للآدي ٦ ناقص.

    ملحوظه:

    يمكن الاستغناء عن علامات التنصيص مع القيمه العدديه داخل نص الاستعلام.

    SELECT message FROM message WHERE id='5' AND id ='6';

    او

    SELECT message FROM ;message WHERE id=5 AND id =6

    • أعجبني 1
  5. البرنامج محتاج تطوير للتأكد من ان الحقول توجد بها قيم وان القيم ارقام وليست حروف او ارقام وحروف.

    والبرنامج قد يعمل معك اذا كانت الارقام تتوسطها حروف او تنهاها.

  6. استبدل الfunction

    function cacl() { "use strict"; document.getElementById("Caclulate").innerHTML = [(document.getElementById("oldCost").value + document.getElementById("newCost").value)] / [(document.getElementById("oldQuantity").value + document.getElementById("newQuantity").value)]; }

     

    بالfunction

    function cacl() {
        "use strict";
        document.getElementById("Caclulate").innerHTML =
            (parseInt(document.getElementById("oldCost").value) + parseInt(document.getElementById("newCost").value)) / (parseInt(document.getElementById("oldQuantity").value) + parseInt(document.getElementById("newQuantity").value));
            }

    وإحرص علي ان لا تكون قيمه المقسوم عليه صفر وإلا ستظهر لك النتيجه infinity

  7. اذا كانت النتيجه undefined

    استخدم stringToNumber

    function stringToNumber(str){ str=new String(str+"");

    if ("parseInt" in window) return parseInt(str);

    var num=0, n=1, i=str.length-1, ch;

    for (;i>-1; i--){

    ch=str.charAt(i);

    if (ch<='9' && ch>='0'){

    ch=ch&15;

    num=num+(ch*n);

    n=n*10;

    } else break;

    }

    return num;

    }

    مع العلم ان الطريقه stringToNumber يمرر لها وسيط واحد.

  8. #include <iostream>


    int main(int argc, char **argv)
    {
        int b = 0;
        int i, j, k = 0, l=1, c = 10;

        for (i = 0; i < c; i++)
        {
            for (j = 0; j < l; j++)
            {
                if (i == c - 1)
                    b = 1;
                else if (k == 0)
                    b = 1;
                else if ((j % k) == 0)
                {
                    b = 1;
                }

                if (b)
                {
                    std::cout << "*";
                    b = 0;
                }
                else
                    std::cout << " ";
            }
            std::cout << endl;
            k++;
            l++;
        }
        return 0;
    }

    • أعجبني 1
×
×
  • أضف...