Jump to content

En0mis

Members
  • Posts

    9
  • Joined

Posts posted by En0mis

  1. Beta 12 has been recently released.

    Changelog

    Version 0.1 beta 12

    • fixed scrollbar in trace view
    • fixed a possible crash in disassembler
    • fixed a memory leak in the window settings
    • fixed a memory leak in dll and process name receiving
    • fixed a memory leak in trace view
    • fixed display of ascii strings in ascii view
    • fixed a bug which could cause wrong run to user code if debugging more than one process
    • fixed a bug which lead to incorrect restarts on slow systems
    • fixed a bug which caused double calling of some functions in context menus
    • fixed a bug in hex view which may showed wrong data
    • fixed a bug in heap view which caused a crash when copying the whole line to clipboard
    • added PatchManager
    • added process privilege view
    • added commandline options
    • added possibility to set process priorities
    • added possibility to set memory protection
    • added display of current priority in detail view - context menu
    • added display of segment registers in reg view
    • added background worker to string view, hex view and functions view
    • removed processes we can´t access from the attach dialog

    Notes:

    - Patches can be saved to file (only on the debugged one)

    - In the memory view you can set the protection of a page using the context menu

    - Commandline options

    - "-s": specifies a file

    - "-c": specifies the commandline for the target if not given you will be asked later

    - "-p": attachs to the given pid

  2. c) (Pentru b se poate folosi inca o variabila "i" ca si contor)


    #include <stdio.h>
    #include <iostream>
    using namespace std;

    int main()
    {
    long long n = 20;
    n = n << 56;
    n++;
    while( 0 != ((n >> 56 )&0xFF)) {
    cout << ((n >> 32) & 0xFFFFFF) << " " << (n & 0xFFFFFF) << " ";
    n += (n & 0xFFFFFF) << 32;
    n += (n >> 32) & 0xFFFFFF;
    n -= ((long long)2) << 56;
    }
    return 0;
    }

    P.S. Compilat cu succes in Visual C++ 2010 Express (posibil ca alte compilatoare sa nu suporte "long long").

    • Upvote 1
  3. B)


    #include <iostream>
    #include <math.h>
    using namespace std;

    int main()
    {
    int n = 0;
    double f = 0.0;
    while(n<20) {
    f=(1/sqrt(5))*(pow((1+sqrt(5))/2,n)-pow((1-sqrt(5))/2,n));
    cout << f << " ";
    n++;
    }
    return 0;
    }

    c)



    #include <iostream>
    #include <math.h>
    using namespace std;

    int main()
    {
    int n = 0;
    while(n<20) {
    cout << (1/sqrt(5))*(pow((1+sqrt(5))/2,n)-pow((1-sqrt(5))/2,n)) << " ";
    n++;
    }
    return 0;
    }

    • Upvote 1
×
×
  • Create New...