Search:

Type: Posts; User: _Mike

Page 1 of 17 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    22
    Views
    3,768

    What compiler/linker arguments are you using? I...

    What compiler/linker arguments are you using? I haven't used pelles before but I assume it has something similar to the debug/release modes in visual studio.

    My results, with VS2010 default...
  2. Replies
    8
    Views
    2,501

    Ah okey. I was just worried there might be some...

    Ah okey. I was just worried there might be some new debugger around that I had missed :)
  3. Replies
    8
    Views
    2,501

    Without using a debugger: Use SEH...

    Without using a debugger:
    Use SEH/VEH to trap STATUS_STACK_OVERFLOW and then examine the exception record.

    With a debugger:
    Just let it run until it crashes.


    I assume you mean WinDbg? (I...
  4. Replies
    46
    Views
    4,454

    Quite possible that I am :) And maybe 'useless'...

    Quite possible that I am :) And maybe 'useless' was a bit too harsh. I'm sorry about that.
    But looking at your format string it kind of implies that proper validation is unneeded here.

    Going by...
  5. Replies
    46
    Views
    4,454

    Oh, I assumed that was just a dump of the output....

    Oh, I assumed that was just a dump of the output.
    If that actually was the input then that's quite a lame attempt to "prove" someone wrong.


    So your point is that file corruption and/or input...
  6. Replies
    16
    Views
    4,001

    Same for me. Hadn't noticed it before, as I...

    Same for me.
    Hadn't noticed it before, as I always use the "New Posts" link to find new/updated threads.
  7. Replies
    46
    Views
    4,454

    You are aware that your output is flawed? There...

    You are aware that your output is flawed? There is no "w A 1" line in the input.
  8. Replies
    47
    Views
    9,403

    Like CommonTater said, remove the '\n'. And...

    Like CommonTater said, remove the '\n'. And also..

    the first scanf is waiting for input.
    You type "50 30\n"
    the first scanf assigns 50 to length_of_room
    ' ' (space character) doesn't match...
  9. Thread: Simple problem

    by _Mike
    Replies
    13
    Views
    1,178

    'number' is an int but you are telling scanf it's...

    'number' is an int but you are telling scanf it's a float.
  10. Replies
    4
    Views
    1,275

    Wow, that's awesome. I have been wishing for that...

    Wow, that's awesome. I have been wishing for that type of feature. :)
  11. Replies
    4
    Views
    1,275

    You could use conversion operators. #include...

    You could use conversion operators.

    #include <iostream>

    class Foo
    {
    public:
    operator int() { return 12345; }
    operator float() { return 3.33; }
    };
  12. Thread: Simple problem

    by _Mike
    Replies
    13
    Views
    1,178

    You are assigning to result before you've read in...

    You are assigning to result before you've read in the value for number.

    result = number/28;
    stores the result of the expression (number/28) in result, not the expression itself. So the result...
  13. Replies
    2
    Views
    20,283

    You probably don't have that dll in the path....

    You probably don't have that dll in the path.
    The easiest solution is to run vsvars32.bat (or possibly vcvars32.bat, can't remember what it's called in Express) and it sets up the shell environment...
  14. Replies
    29
    Views
    4,734

    What I'm saying is.. Read the specification...

    What I'm saying is.. Read the specification documents for C, C++ & C# and based on that information alone tell me which language has the highest performance.
    It simply cannot be done, because the...
  15. Replies
    6
    Views
    1,934

    You do it the same way you wrote the rest of the...

    You do it the same way you wrote the rest of the code; With a text editor :p

    scanf(), fscanf()

    int returnvalue = scanf(...);
  16. Replies
    29
    Views
    4,734

    Exactly this. You cannot even measure the...

    Exactly this. You cannot even measure the performance of the languages themselves. You can however compare language implementations against each other.
    The blanket statement that Java is slow is...
  17. Replies
    10
    Views
    2,225

    First you correct manasij7479 for not using & to...

    First you correct manasij7479 for not using & to get the address of foo, and then you do the same thing yourself :)


    typedef void (X::*X_foo_t)();
    X_foo_t bar = &X::foo;
  18. VERSIONINFO Resource (Windows)...

    VERSIONINFO Resource (Windows)
    It's the FileDescription field.

    In visual studio:
    right-click your project -> Add -> Resource -> Version

    Or if you're using express, which I don't think has the...
  19. Replies
    3
    Views
    1,607

    Thank you both. I ended up using the 'FORCE'...

    Thank you both.
    I ended up using the 'FORCE' way. Include also worked, but it made things a bit trickier to use with relative paths in the subdir makefile.
  20. Replies
    27
    Views
    7,358

    Would this work, or would the struct members...

    Would this work, or would the struct members switch places depending on endianness?

    #include <stdio.h>

    union endiantest
    {
    struct
    {
    unsigned char low : 1;
    unsigned char pad : 6;
  21. Replies
    14
    Views
    2,111

    You're missing a 0 in mega :) And if you use...

    You're missing a 0 in mega :) And if you use SI-units for mega then you'd have to use it for kilo as well.
    1 Byte is 8 bit.
    Using SI-units for kilo and Mega; 1 Mbit is 1000 kbit. 1000/8 = 125...
  22. Replies
    14
    Views
    2,111

    You could also cache the files locally in memory...

    You could also cache the files locally in memory or on disk. Check the last modified timestamp of the file(s) on the network share at some interval, and if newer update the cache.

    1 MBit is 125 or...
  23. Replies
    3
    Views
    1,607

    Makefiles depending on other makefiles

    I've been trying to get GNU make to work with a root dir Makefile and a subdir Makefile..
    I've written my Makefiles based on The GNU C Programming Tutorial but I can't figure out how to solve this....
  24. Replies
    12
    Views
    1,076

    I see, so that was the main source of my...

    I see, so that was the main source of my confusion. I thought identifier lists and parameter lists were the same thing.
    I had actually never seen the identifier list version of declarations before...
  25. Replies
    12
    Views
    1,076

    @Andrew: Thank you. I wasn't sure if I remembered...

    @Andrew: Thank you. I wasn't sure if I remembered it correctly and your post made me a bit more unsure. :)

    And speaking of the standard.. I was trying to find where this behavior was mentioned and...
Results 1 to 25 of 415
Page 1 of 17 1 2 3 4