Search:

Type: Posts; User: thmm

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

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

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

    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
  3. Thread: Help; Help: Help!

    by thmm
    Replies
    4
    Views
    276

    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.
  4. Replies
    8
    Views
    360

    Thanks John, all clear now.

    Thanks John, all clear now.
  5. Replies
    8
    Views
    360

    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++ ?
  6. Replies
    2
    Views
    679

    HAve a look here: Reference Source...

    HAve a look here: Reference Source
  7. Replies
    1
    Views
    244

    Hi and welcome to the forum.

    Hi and welcome to the forum.
  8. Replies
    35
    Views
    1,306

    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
  9. Replies
    35
    Views
    1,306

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

    Wouldn't it be an option to store the checksum in the filename ?
  10. Replies
    35
    Views
    1,306

    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 *'
  11. Replies
    35
    Views
    1,306

    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
  12. Replies
    3
    Views
    489

    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...
  13. Thread: static array list

    by thmm
    Replies
    5
    Views
    411

    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.
  14. Thread: Pointers stuff

    by thmm
    Replies
    4
    Views
    952

    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++.
  15. Replies
    3
    Views
    620

    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
  16. Thread: Binary file

    by thmm
    Replies
    11
    Views
    1,067

    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.
  17. Thread: Binary file

    by thmm
    Replies
    11
    Views
    1,067

    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.
  18. Thread: Binary file

    by thmm
    Replies
    11
    Views
    1,067

    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.
  19. Thread: Binary file

    by thmm
    Replies
    11
    Views
    1,067

    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...
  20. 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.
  21. Replies
    10
    Views
    1,462

    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...
  22. Replies
    12
    Views
    779

    What is the problem? Does it crash? Does it...

    What is the problem?
    Does it crash?
    Does it allow more than 7 tries?
    Doesn't it guess it at all?

    One problem I see is that you set high to 100, but the user can enter sth. like 55.
  23. I think you need to learn how to enable warnings...

    I think you need to learn how to enable warnings in your code flags. Your code has quite a few errors.

    clang -Wall -Wextra -Wshadow -Wpedantic -Werror -std=c99 -fsanitize=address,undefined -c...
  24. Replies
    2
    Views
    840

    Also posted here: C Programming Linked List - C...

    Also posted here:
    C Programming Linked List - C And C++ | Dream.In.Code
  25. Thread: Composition

    by thmm
    Replies
    11
    Views
    1,417

    @laserlight, I just wanted to show an...

    @laserlight,
    I just wanted to show an alternative way to do certain things.
    I don't claim that it is better.
    Not needing inheritance is a just a nice side ffect.
    I guess that not using virtual...
Results 1 to 25 of 80
Page 1 of 4 1 2 3 4