Search:

Type: Posts; User: jim mcnamara

Page 1 of 13 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    545

    What problem are you having? - the only issues I...

    What problem are you having? - the only issues I see:
    you do not loop around the switch statement so that the user can enter multiple items (seems to me it is implied from the requirements),
    you...
  2. Replies
    23
    Views
    6,737

    DST changes are political. Some countries , like...

    DST changes are political. Some countries , like in Irsrael, DST may actually be legally mandated after it has already started... Lunar calendars like Hijri are so unrelated to the Gregorian...
  3. Replies
    23
    Views
    6,737

    We seem to be talking past each other. You...

    We seem to be talking past each other.

    You should call tzset() with the timezone of the input data. Then call strptime() with the time/date string only, no TZ string.
    As a matter of procedure...
  4. Replies
    3
    Views
    1,044

    C function "strtoull" failing - The UNIX and...

    C function "strtoull" failing - The UNIX and Linux Forums

    Please do not post the same question everywhere. This requires that you read about one paragraph of documentation on printf format...
  5. There are some problems in your code, for...

    There are some problems in your code, for example:


    #include "stdio.h"
    // should be
    #include <stdio.h>

    for your includes.

    Did you actually compile this code? And. What is your...
  6. Replies
    28
    Views
    2,281

    Can you get access to a bignum library: e.g.,...

    Can you get access to a bignum library: e.g.,
    gmp The GNU MP Bignum Library for Linux
    C# express for Windows Download | Microsoft Visual Studio 2012
    cygwin + gmp + gcc for windows Cygwin ...
  7. Replies
    10
    Views
    906

    This is a serious design question. Consider:...

    This is a serious design question.

    Consider: Cache latency and Column-wise Access

    If you access each element (either in a bit table, or some other data structure) of a column when the whole...
  8. Replies
    10
    Views
    906

    Are you bound to using datatypes and not bits? ...

    Are you bound to using datatypes and not bits? You seem to have only -- off/on -- for each "cell" in your matrix.
    This has O(N) access to columns given a row, or to rows given a column.



    //...
  9. Replies
    20
    Views
    1,827

    Every datatype has it's own storage requirement...

    Every datatype has it's own storage requirement based on system architecture.

    The size of a float is probably 32 bits, an integer 32 bits. Why probably?

    There are standards about how to...
  10. DRY principle - Don't Repeat Yourself. Say you...

    DRY principle - Don't Repeat Yourself. Say you write a few lines of code to get yesterday's date, and need use it over and over in a large application---a simple example:


    char...
  11. Replies
    6
    Views
    2,054

    This is easy to understand:...

    This is easy to understand:
    http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm

    This is more useful and higher level - David Goldberg's article:
    What Every Computer...
  12. Replies
    2
    Views
    857

    The standards text is a little bit impenetrable. ...

    The standards text is a little bit impenetrable. I agree with you. Thanks. There are several standards people on the forums here so -- worth a question.
  13. Replies
    2
    Views
    857

    Undefined behavior

    from C11 standards N1570 draft


    I believe this is UB per the above: (it is obviously contrived)


    int main()
    {
    int a;
    int b=a;
  14. Replies
    5
    Views
    1,115

    Consider not spreading this question everywhere...

    Consider not spreading this question everywhere on the net:
    Senior Advisor - http://www.unix.com
    Need help with Card Dealing Program - Dev Shed
  15. Replies
    32
    Views
    3,573

    Salem is definitely on the best track. I/o can...

    Salem is definitely on the best track. I/o can slow things down hours - crummy algorithms slow things down for weeks.

    I vote for:
    Linear search times on a growing array or linked list. At the...
  16. Replies
    61
    Views
    10,333

    I'm not suggesting anything. I am a mod on...

    I'm not suggesting anything. I am a mod on another site -we are being removed from the list because we demonstrated that we have always actively blocked homework and have a zero tolerance for it.
    ...
  17. Replies
    61
    Views
    10,333

    Contract Cheating

    cboard.cprogramming.com is listed #7 on list of sites/forums that actively support "contract cheating". Which term you can google for lots of examples.

    Robert Clarke, Thomas Lancaster and (I...
  18. See the table 'MT Interface Safety Levels' ...

    See the table 'MT Interface Safety Levels' mid-way down the page --- discusses what thread-safe and POSIX async-safe mean, and provides a spectrum of 'safe' definitions.

    5 Safe and Unsafe...
  19. Replies
    7
    Views
    4,285

    Linux on x86 is little endian because x86 is...

    Linux on x86 is little endian because x86 is little endian. There can be architectures running Linux that may not be little endian.

    The Internet Protocol defines internet endianness as big...
  20. Replies
    11
    Views
    7,324

    deep copies refer to allocating memory and...

    deep copies refer to allocating memory and copying the contents of allocated objects into the destination pointer's allocated memory.
    i.e.,
    b.shallow needs it own separate chunk of allocated...
  21. Replies
    2
    Views
    4,144

    Thanks - I'll find and read it.

    Thanks - I'll find and read it.
  22. Replies
    2
    Views
    4,144

    array initialization & C standard

    void foo(void)
    {
    int b[3]={0};
    char c[4]={0x0};
    /* this point */
    }

    I cannot find in the C99 standard - at /* this point */ - what the value of the two initialized auto arrays must...
  23. POSIX also supports message queues. They would...

    POSIX also supports message queues. They would probably not work as well for your app as some other IPC method, like named pipes or a socket, for example. Sockets are very commonly used by daemons...
  24. Replies
    7
    Views
    1,454

    Actually the comment flatly stated that C...

    Actually the comment flatly stated that C standards dictate that fp operations must all be double precision. I could no imagine how that would EVER get through the standards committee.

    But you're...
  25. Replies
    7
    Views
    1,454

    I don't see anything in the standard to support...

    I don't see anything in the standard to support all fp operations being double precision.
    It did not sound at all right to start with, but I've gotten rather old, and so wanted to be sure.

    Thanks.
Results 1 to 25 of 308
Page 1 of 13 1 2 3 4