Search:

Type: Posts; User: strange

Page 1 of 2 1 2

Search: Search took 0.01 seconds; generated 55 minute(s) ago.

  1. I've pushed a few small changes to the stable...

    I've pushed a few small changes to the stable branch, including some bug fixes and speed optimizations (Aesalon should take ~2% less time to execute a program now). If you downloaded Aesalon before,...
  2. Here are two screenshots of Aesalon running on...

    Here are two screenshots of Aesalon running on two separate programs. The x-axis is time, the y-axis is address space. In other words, the taller a rectangle, the larger the block it represents; the...
  3. Well, I've been working on Aesalon over the past...

    Well, I've been working on Aesalon over the past few days, and I have implemented several more features in Aesalon. The two major points:
    - 32-bit support
    - Much faster rendering

    Aesalon works...
  4. As I mentioned in my response to your email, the...

    As I mentioned in my response to your email, the problem is that Aesalon does not currently support 32-bit platforms, only 64-bit platforms.

    However, I am working on implementing 32-bit support at...
  5. Rebuke accepted, and I apologize. I've attached a...

    Rebuke accepted, and I apologize. I've attached a tarball of the source code. It's in .tar.gz format, renamed to .txt so I can upload it. There are compilation instructions inside the archive, in the...
  6. Aesalon: a tool to visualize dynamically-allocated memory

    Hello everyone,

    I've been working on a project of mine for a little while now, called Aesalon. It is now beginning to become "stable", and I thought someone here might be interested in it.
    ...
  7. Replies
    28
    Views
    2,928

    If you declare the array as a variable on the...

    If you declare the array as a variable on the stack (e.g. as a local or global variable), then you will not have to do anything unusual to the variable to free it. Only memory allocated on the heap,...
  8. Replies
    12
    Views
    2,888

    *sigh*. I'm sorry, I'm very tired at the moment....

    *sigh*. I'm sorry, I'm very tired at the moment. I would concur with laserlight, that you need to pass it a pointer, since that is what the implementation specifies.

    Out of curiosity, why are you...
  9. Replies
    8
    Views
    1,944

    . . . think about it for one moment, here....

    . . . think about it for one moment, here. laserlight has suggested you expand it out yourself, which s/he has done kindly for you.

    How many times is a going to be incremented? How about b?
  10. Replies
    12
    Views
    2,888

    That error message means that you don't have a...

    That error message means that you don't have a function called CSustitucion::sustituir that takes a CTermino reference as a parameter. Instead, it would appear you're instead passing a reference to a...
  11. Replies
    10
    Views
    6,712

    Now, what the heck is a NON_BLOCK socket? Do you...

    Now, what the heck is a NON_BLOCK socket? Do you mean an O_NONBLOCK socket? ;) (See the man page for open()[/b] for more details). You can also use [url=http://linux.die.net/man/2/fcntl]fcntl to...
  12. Replies
    5
    Views
    1,306

    May I point out, in sufoode's post, the full...

    May I point out, in sufoode's post, the full variable names are not in the function prototypes? While I realize they are not required, it is perhaps a good idea to put them in, to avoid some...
  13. Replies
    28
    Views
    2,928

    Check the return value of fgets()? Perhaps the...

    Check the return value of fgets()? Perhaps the stream is closed for some reason, or invalid, or not opened correctly . . .

    Beyond that, I can't say anything else without more code. ;)
  14. Replies
    7
    Views
    1,471

    Technically, a linked list should probably have...

    Technically, a linked list should probably have at least a next pointer, so like . . .



    struct linked_list_node_t {
    /* data elements . . . */
    struct linked_list_node_t *next;
    }
  15. Replies
    3
    Views
    2,052

    May I suggest you indent your source code? It...

    May I suggest you indent your source code? It helps dramatically with source code readability . . .



    #include <stdio.h>

    int main() {
    int input;
    int first, second, third, fourth,...
  16. Replies
    28
    Views
    2,928

    Is buff a pointer? If so, then sizeof(buff) will...

    Is buff a pointer? If so, then sizeof(buff) will return sizeof(char *) . . . probably not what you want.

    Beyond that, that snippet looks fine to me . . .
  17. Replies
    22
    Views
    29,241

    From the man page, again, If you wish to...

    From the man page, again,

    If you wish to append onto a buffer using read(), then you may do something like the following:


    /* Append twelve bytes onto string buffer . . .*/
    read(fd,...
  18. Replies
    18
    Views
    3,074

    Aye, I suppose you have a valid point. I...

    Aye, I suppose you have a valid point. I personally put in the struct keyword in C, as I feel that it helps keep things easier to manage.

    But you are correct, there is no real reason to do so. My...
  19. Replies
    14
    Views
    4,373

    What you can do, is something like this: ...

    What you can do, is something like this:



    #include <iostream>

    . . .

    double convert_m_to_cm(double m) {
    return m/100.0;
  20. Replies
    18
    Views
    3,074

    In C++, the class/struct are not required when...

    In C++, the class/struct are not required when declaring an instance of a class or structure. Only in C (or perhaps some very old C++ compilers) are they absolutely required.

    It's a good habit to...
  21. Replies
    3
    Views
    2,166

    Uhh . . . what files are in the C:\MinGW\include...

    Uhh . . . what files are in the C:\MinGW\include directory? Perhaps try a legacy or development version of MinGW?
  22. Replies
    6
    Views
    1,615

    You are correct, it is a very bad habit that I...

    You are correct, it is a very bad habit that I have. And you're right, I shouldn't be teaching others my bad habits. ;)

    I realized after I posted it that I could have just used return, but I was...
  23. Thread: typedef

    by strange
    Replies
    6
    Views
    1,671

    Aah, words of wisdom. Now, can you please tell...

    Aah, words of wisdom. Now, can you please tell that to the developers of SDLNet? . . .

    Actually, typedef'ing pointers isn't too bad (IMO), as long as you don't over-do it. And as long as you give...
  24. Thread: typedef

    by strange
    Replies
    6
    Views
    1,671

    Think of a typedef as something that redefines...

    Think of a typedef as something that redefines the value of one thing as another. So, for example:



    typedef int VARIABLE_TYPE;
    VARIABLE_TYPE this_is_actually_an_int;

    typedef std::string...
  25. Replies
    6
    Views
    1,615

    Doing my best to understand what you mean . . . ...

    Doing my best to understand what you mean . . .

    In other words, you are creating a list of names, let's say, "names.txt", that contains something much like:


    Allen
    Brian
    Crystal
    David
    Ellen
Results 1 to 25 of 29
Page 1 of 2 1 2