Search:

Type: Posts; User: Azimuth

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,900

    Correct me if I'm wrong, but isn't it usually the...

    Correct me if I'm wrong, but isn't it usually the case that on x86 the frame pointer and passed function parameters would be located "above" (lower on the stack) the allocated buffer? So how is it...
  2. Replies
    5
    Views
    3,900

    Single Byte Buffer Overflow

    Hi all,

    I have a piece of code I'm supposed to identify a security issue with


    int copy(char *in)
    {
    char d[128];
    if (strlen(in) > sizeof(d))
    return -1;
  3. Thread: random to int?

    by Azimuth
    Replies
    7
    Views
    4,703

    C# does have pointers, but they should be placed...

    C# does have pointers, but they should be placed in unsafe blocks and compiled with a special flag.
    Delegates are C#'s rough equivalent to C/C++ function pointers.
  4. Thread: Hardware ID

    by Azimuth
    Replies
    1
    Views
    1,564

    Hardware ID

    I need to access the serial numbers of several devices including, the HDD, motherboard, memory, NIC, etc...

    In a thread I previously posted, I was redirected to diskid32, which was a lot of help;...
  5. Ok, so this is what I changed: // In the...

    Ok, so this is what I changed:



    // In the class definition
    string getPersonName();

    // into

    const string& getPersonName();
  6. I'm currently doing a summer session in...

    I'm currently doing a summer session in university and I'm taking a course called "Introduction to computer science II" which deals with OOP, so we still didn't reach that point yet (I skipped...
  7. The getPersonName() function is supposed to...

    The getPersonName() function is supposed to return the person's name, and it is defaulted to an empty string in the constructor, so is it better if I use the string class as you pointed out?

    And...
  8. When I said "worked" for the second question, I...

    When I said "worked" for the second question, I meant that it gave correct results.
  9. A couple of questions regarding classes and strings.

    Hi all,

    1) In a problem I have to solve, it is required that I create a class with one of the functions in it that returns the total cost of all objects instantiated from that class. Here's the...
Results 1 to 9 of 9