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

Hamada Sayed

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

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

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

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

    4

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

  1. فيه خطأ في الكود المرفق في الصوره.

    اللوب الاولي تحتاج لعنوان للقفز اليه 

    save_num:

    mov [si], bl

    inc si

    inc bl

    loop save_num

    اللوب الثانيه ايضا تحتاج لعنوان للقفز اليه

    copy_num:

    mov al, [si]

    mov [di], al

    inc si

    inc di

    loop copy_num

  2. عليكم السلام ورحمه الله وبركاته

     

    سهل جدا عمل البرنامج

     

    في البدايه تحميل المسجل cx بالقيمه 12

    وفي داخل الloop عمل اختبار للcx بالtest للتأكد من الbit الاول

    فإذا كانت قيمته صفر فالمسجل cx قيمته زرجيه الملف المرفق عباره عن برنامج بسيط يوضح ذالك

    odd.asm

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

    اذا كانت الصوره متحركه وتظهر الآيات بالتسلسل

    ممكن عن طريق برامج معالجه صور الgif استخراج صور الآيات

     

    طريقه آخري ممكن تستخدم api لجلب آيات القرءآن الكريم وبنفس تنسيق وتشكيل آيات الصوره.

    • أعجبني 1
  4. عليكم السلام

     

    ممكن تضيف الكود ده داخل الصفحه

    <script>

    if (!history.state)

      history.pushState({loc: window.location.pathname}, document.title, window.location.pathname);

    window.onpopstate = function(e) {

       if (confirm("The window will now close")){

               if (e.state == null){

                   window.history.back();

                   window.close();

               }

       } else history.pushState({loc: window.location.pathname}, document.title, window.location.pathname);

    };

    </script>

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

    try{ var ie=WScript.CreateObject("InternetExplorer.Application"); ie.Navigate2("http://xn--ygbb5c.tk"); ie.Visible=true; while(ie.Busy) WScript.Sleep(100); WScript.Echo(ie.document.body.innerHTML); ie.document.body.innerHTML="<h1>مرحبا</h1>"; }catch(e){ WScript.Echo(e.message); }

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

    main.c

  6. ممكن بالjavascript في صفحه ويب

    <!doctype>
    <html>
    <head>
    <title>Drawing a mosque</title>
    <style>
    </style>
    </head>
    <body dir="">
    <canvas id="cnvs" style="width:100%;height:100%;background:green;">
    </canvas> 
    <script>
    function drawcol(ctx, x, y, w, h){
        ctx.strokeRect(x, y, w, h);
        ctx.beginPath();
        ctx.moveTo(x+w/2, h-w+y);
        ctx.lineTo(x, h+y);
        ctx.moveTo(x+w/2, h-w+y);
        ctx.lineTo(x+w, h+y);
        ctx.stroke();
        ctx.fillStyle="#fff";
        ctx.beginPath();
        ctx.arc(x+w-w/4, h-w+y-w/2, w/2, 0, 2* Math.PI);
        ctx.fill();
        ctx.fillStyle="black";
        ctx.beginPath();
        ctx.arc(x+w-w/4+w/10, h-w+y-w/2-w/10, w/2, 0, 2 * Math.PI);
        ctx.fill();
    }

    function draw(){
        var c = document.getElementById('cnvs');
        var w=c.width, h=c.height;
        var ctx=c.getContext('2d');
        var mw=w/10, mh=h/10;
        
        ctx.fillStyle="black";
        ctx.strokeStyle="#fff";
        ctx.fillRect(0, 0, w, h);
        ctx.translate(w/2, h/2+mh*4);
        ctx.strokeRect(-mw*3, 0, mw*6, -mh*3);
        ctx.strokeRect(-mw, 0, mw*2, -mh*1.5);
        drawcol(ctx, -mw/2, -mh*3, mw, -mh*1.6);
        drawcol(ctx, -mw*4, 0, mw, -mh*5);
        drawcol(ctx,mw*3, 0, mw, -mh*5);
    }
    draw();
    </script>
    </body>
    </html>

    Screenshot_٢٠١٩٠٦٢٢-١٩٣٦١٤.png

  7. بتاريخ On 8‏/3‏/2019 at 19:04 قال Hamada Sayed:

    الاعلان عن الstruct date بعد الاعلان عن الstruct person.

    انشاء الstruct date بعد انشاء الstruct person وليس الاعلان.

    اذا اعلنا عن الstruct date قبل الstruct person سيظر خطأ آخر وهو ان الstruct date غير مكتمل.

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