Search:

Type: Posts; User: thmm

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    937

    Wouldn't it be more sensible to check the number...

    Wouldn't it be more sensible to check the number before you add it to the vector ?
  2. Replies
    10
    Views
    461

    :: is called the scope resolution operator. ...

    :: is called the scope resolution operator.

    More details here: https://stackoverflow.com/questions/15649580/using-in-c
  3. Replies
    125
    Views
    5,481

    No I didn't. I just saw the comment.

    No I didn't. I just saw the comment.
  4. Replies
    125
    Views
    5,481

    What are you talking about? 0 fits in an unsigned...

    What are you talking about? 0 fits in an unsigned int.

    #include <stdio.h>

    int f()
    {
    return 0;
    }
  5. Replies
    10
    Views
    1,063

    if (bin = 1) The equal operator is ==, not =.

    if (bin = 1)
    The equal operator is ==, not =.
  6. Replies
    2
    Views
    565

    This might be interesting: ...

    This might be interesting:
    https://www.amazon.co.uk/Secure-Programming-Cookbook-Cryptography-Authentication/dp/0596003943/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1625828519&sr=1-10
  7. Thread: Help; Help: Help!

    by thmm
    Replies
    4
    Views
    403

    There might be no input file. The emails could be...

    There might be no input file. The emails could be inside a running instance of Notepad.
  8. Replies
    8
    Views
    658

    Thanks John, all clear now.

    Thanks John, all clear now.
  9. Replies
    8
    Views
    658

    Doesn't the C Runtime replace \r\n with a single...

    Doesn't the C Runtime replace \r\n with a single \n or is this only in C++ ?
  10. Replies
    2
    Views
    1,999

    HAve a look here: Reference Source...

    HAve a look here: Reference Source
  11. Replies
    1
    Views
    335

    Hi and welcome to the forum.

    Hi and welcome to the forum.
  12. Replies
    35
    Views
    2,254

    What Windows do you use? Under Windows 10 you...

    What Windows do you use?
    Under Windows 10 you can enable long filenames with a length of 32,767 chars
    Enable long file name support in Windows 10 | IT Pro
  13. Replies
    35
    Views
    2,254

    Wouldn't it be an option to store the checksum in...

    Wouldn't it be an option to store the checksum in the filename ?
  14. Replies
    35
    Views
    2,254

    It works with the dirent header from above link....

    It works with the dirent header from above link.
    Just 1 warning: main.c(42,28): warning C4133: 'function': incompatible types - from 'stat *' to '_stat64i32 *'
  15. Replies
    35
    Views
    2,254

    No, Visual Studio doesn't have dir.h. stat.h...

    No, Visual Studio doesn't have dir.h.

    stat.h is in sys/stat.h
  16. Replies
    3
    Views
    617

    Sounds you added a project to an existing...

    Sounds you added a project to an existing solution. Did you add the references to the other projects in the solution?
    What version of Visual Studio do you use?
    There are books about Visual Studio...
  17. Thread: static array list

    by thmm
    Replies
    5
    Views
    578

    To add first digit => array[0] = 1 To add second...

    To add first digit => array[0] = 1
    To add second digit => array[1] = 2
    and so on until 5th digit which will be in array[4]

    To print the array use a simple for loop.
  18. Thread: Pointers stuff

    by thmm
    Replies
    4
    Views
    1,207

    Shouldn't this post be in the C section? It's not...

    Shouldn't this post be in the C section? It's not C++.
  19. Replies
    3
    Views
    801

    I am not sure if it is worth for a beginner to...

    I am not sure if it is worth for a beginner to bother about.
    But if you insist, there is an example: C library function - setvbuf() - Tutorialspoint
  20. Thread: Binary file

    by thmm
    Replies
    11
    Views
    1,452

    As far as I see it seems ok, but I am not an...

    As far as I see it seems ok, but I am not an expert.
  21. Thread: Binary file

    by thmm
    Replies
    11
    Views
    1,452

    I guess the op wants to run it only on his...

    I guess the op wants to run it only on his machine so this assumptions are justified.
  22. Thread: Binary file

    by thmm
    Replies
    11
    Views
    1,452

    Looks better now, but one problem remains. if...

    Looks better now, but one problem remains.

    if (file1 == NULL && file2 == NULL && file3 == NULL) {
    Shouldn't the conditions be || since if one file can't be opened there is no point to continue.
  23. Thread: Binary file

    by thmm
    Replies
    11
    Views
    1,452

    book.category == "Software Engineering" This...

    book.category == "Software Engineering"
    This doesn't not work. To compare strings you need to use strcmp.

    Your compiler should warn you.
    gcc -Wall -Wextra "binary.c" -std=c99 -o file_demo.exe...
  24. Why not ? From a OO point a player has an...

    Why not ? From a OO point a player has an inventory.
    I would rather decouple the player from the inventory, the inventory doesn't need to know the player class.
  25. Replies
    10
    Views
    1,953

    If you have an abstract function in the base...

    If you have an abstract function in the base class you need a virtual constructor.
    c++ - When to use virtual destructors? - Stack Overflow

    I also would replace the dynamic array with a...
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4