Search:

Type: Posts; User: xuftugulus

Page 1 of 15 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    1,976

    That's for the linker to decide. The final step...

    That's for the linker to decide. The final step in compiling an executable or library.

    Even multiple inclusion compile-time performance issues are usually handled
    cleanly from the compiler,...
  2. It's a matter of pure control over which stream...

    It's a matter of pure control over which stream is actually used for some.
    When one needs to output an error message, fprintf on stderr is logical to use.
  3. Replies
    15
    Views
    2,958

    For well known problems it is usually best not to...

    For well known problems it is usually best not to have to deal with their solutions.
    After some searching for my own needs i came up with this attractive open source
    big integer implementation....
  4. Replies
    9
    Views
    4,670

    Write a program to create your array. I prefer...

    Write a program to create your array. I prefer Perl for such jobs.
    The basic idea is to write a file that contains:


    int my_array[] = {
    ...
    };

    And between the brackets just spit out comma...
  5. char *read_line(int line_length, FILE *txt, char...

    char *read_line(int line_length, FILE *txt, char *lp)
    {
    int i;
    char *character = lp;
    FILE *text;

    for (i = 0; i < (line_length - 1); i++) {
    *character++ = fgetc(text);
    }
    ...
  6. Replies
    4
    Views
    5,260

    Well from my memory there are at least a dozen...

    Well from my memory there are at least a dozen implementations of huffman out there.
    The tree is nothing more than a simple binary tree with leafs containing the symbols that
    are encoded, and the...
  7. Replies
    7
    Views
    19,132

    I think the father waits indefinitely....

    I think the father waits indefinitely....
  8. Replies
    31
    Views
    9,820

    Did you remove the newline character as vart...

    Did you remove the newline character as vart suggested?
  9. Replies
    6
    Views
    1,561

    A quick fix of your print routine, works finely...

    A quick fix of your print routine, works finely if you pass your 'i' == total stores read as a 2nd parameter.


    void printMissingStores(char szStoreNums[][51], int sz)
    {
    int idx = 0;
    ...
  10. Replies
    3
    Views
    1,546

    Also aren't Delphi/Pascal pointers supposed to...

    Also aren't Delphi/Pascal pointers supposed to look something like:


    TFileStream: ^FStream;

    The whole snippets feel wrong to me... although i haven't seen that oracle language for
    some...
  11. Replies
    31
    Views
    9,820

    Do you know that strcmp returns 0 when two...

    Do you know that strcmp returns 0 when two strings are equal?


    char *a = "gorilla";
    if( strcmp(a,"gorilla") == 0 )
    printf("KING KONG vs GODZILLA\nFIGHT!\n");

    The above...
  12. Replies
    3
    Views
    1,546

    Although this is Delphi, the answer is pretty...

    Although this is Delphi, the answer is pretty simple.

    My guess is that Write treats the int given from you as a simple sequence of bytes, and writes
    those bytes in their binary form to your file....
  13. Replies
    16
    Views
    4,563

    And as far as the gift is concerned i had a small...

    And as far as the gift is concerned i had a small idea...


    #include "boxes.h"
    #include "ribbons.h"
    #include <stdmetal.h>
    #include <socket.h>

    extern money_t credit;
  14. Replies
    12
    Views
    11,100

    You can use the following: float num; int...

    You can use the following:


    float num;
    int remainder;
    num = 12345.6789f;
    remainder = floor(num - (int)( ( num / 10 ) * 10 ));

    It should work for positive floats... and you might like round...
  15. Replies
    16
    Views
    3,434

    Current version of mingw32...

    Current version of mingw32 on sourceforge.
  16. Replies
    2
    Views
    1,215

    For one thing, Java doesn't support the template...

    For one thing, Java doesn't support the template keyword, so you will need to come up with
    a hierarchy for your ItemType, or use the Comparable interface to free yourself from the type,
    and allow...
  17. Replies
    62
    Views
    13,204

    The whole point was never about drinking, and i...

    The whole point was never about drinking, and i assure you i wasn't drunk at the time of the thread start. But if it is important to you, then the following do hold for drinking, as for anything
    in...
  18. Replies
    16
    Views
    4,563

    Sounds nerdomantic :) Would easily do it for the...

    Sounds nerdomantic :)
    Would easily do it for the right person.
  19. Replies
    35
    Views
    3,544

    Fixed size buffers makes life much easier when...

    Fixed size buffers makes life much easier when multiple data structures are to be passed
    using recv/send. The first approach, first posted by Elysia, would be my choice too.
  20. Replies
    2
    Views
    4,017

    In the final end what gets transmitted through a...

    In the final end what gets transmitted through a socket, thanks to the many layers of
    abstraction provided by the network protocols, is raw bytes.
    Whether the receiver chooses to interpret them as...
  21. Replies
    14
    Views
    2,860

    Your call to scanf ignores the buffer size....

    Your call to scanf ignores the buffer size.
    Calling fflush(stdin) is best to be avoided. Why.

    Pretty bad for a solution for reasons already explained.
    The proper way to scanf is:


    char...
  22. Replies
    15
    Views
    2,151

    The problem solution could be formulated using...

    The problem solution could be formulated using graphs.
    Assume that rooms are vertices, and pairs given are edges therefore a single
    test case can be mapped to a graph G(V,E), where:


    V={a[ι] |...
  23. Replies
    1
    Views
    1,114

    Your efforts so far? Start by using getchar() to...

    Your efforts so far? Start by using getchar() to read in the user input into an appropriate
    character buffer. Then you can continue with processing the input, and then output the
    result.
    The...
  24. Replies
    9
    Views
    2,604

    You might want to search for the words "Euclidean...

    You might want to search for the words "Euclidean algorithm", and look at the pseudo-codes
    presenting the algorithm, as you have it clearly a little messed up.
  25. Replies
    13
    Views
    5,864

    unique=isUnique(values); You haven't...

    unique=isUnique(values);

    You haven't prototyped the function isUnique.
    You are calling it with the wrong number of arguments.
Results 1 to 25 of 357
Page 1 of 15 1 2 3 4