Search:

Type: Posts; User: -Adrian

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    293

    The latter. The scanf results in the memory you...

    The latter. The scanf results in the memory you passed being written to. That memory "lives" in main so of course the change is visible there.

    If you insist on creation an array inside a function...
  2. Replies
    5
    Views
    126

    I know it's not helpful but I really feel sorry...

    I know it's not helpful but I really feel sorry that your school is putting you through this. If you practiced programming logic, it wouldn't matter so much that your toolset is outdated, but what do...
  3. Replies
    10
    Views
    291

    It aims to be. Can: yes. Will: no. C++ and...

    It aims to be.


    Can: yes. Will: no. C++ and especially C will stay relevant for a very long time.

    If you're asking because you wonder if C and C++ are worth learning, then the answer is yes....
  4. Thread: gui in c

    by -Adrian
    Replies
    2
    Views
    296

    You could consider using GTK...

    You could consider using GTK, which is written in C.
  5. Replies
    25
    Views
    782

    Also, consider that you don't need to use and...

    Also, consider that you don't need to use and IDE. You can use a text editor (a fancy one like VSCode/Atom if you want) and e.g. CMake to define your build structure and work from the terminal. No...
  6. In C++ one can use: #include ...

    In C++ one can use:


    #include <limits>

    double max_value = std::numeric_limits<double>::max();
  7. Do you have access to binaries already? The...

    Do you have access to binaries already? The PortAudio website seems to only offer the source, so you'll likely have to build the libraries first, hence their absence in your downloaded directories.
    ...
  8. So the host is Windows? And what OS is the VM?

    So the host is Windows? And what OS is the VM?
  9. Thread: stdlib.h in C

    by -Adrian
    Replies
    3
    Views
    301

    For C++, use & Co. (if necessary). In...

    For C++, use <cstdlib> & Co. (if necessary). In principle, you cannot rely on C Standard Library headers like <stdio.h> being bundled with your C++ compiler and thus should avoid using them in your...
  10. Thread: Memoization

    by -Adrian
    Replies
    7
    Views
    373

    A painfully accurate description of what's seen...

    A painfully accurate description of what's seen here. Imo the article makes a strong case for altogether removing such people, even if it offers examples of how to help the afflicted.
  11. There are plenty of self-contained applications...

    There are plenty of self-contained applications that do just that. In the Linux ecosystem you have things like Flatpak, Snap, AppImage. In the Windows world you can use "portable" (the meaning is...
  12. Ok, I'll give that a shot. I'm interested both in...

    Ok, I'll give that a shot. I'm interested both in front- and backend. For the frontend my main question was what to use to compose an interactive UI. From what I understand, React.js is very popular...
  13. Active forum/chat for web development talk?

    I'm wondering if you folks can recommend (form personal experience) message boards like ours here or chat channels (IRC, Slack, Gitter, Discord etc.) on the topic of web development in general.
    ...
  14. Thread: XOR vs ^

    by -Adrian
    Replies
    12
    Views
    409

    Post your code, I get 5 in C as well.

    Post your code, I get 5 in C as well.
  15. Thread: Huh, back.

    by -Adrian
    Replies
    2
    Views
    296

    Welcome back! Wish the forum was more active...

    Welcome back! Wish the forum was more active still. I think C++ is used/taught in settings that don't invite online discourse the way other languages do.
  16. Replies
    4
    Views
    210

    Yes, that's correct. It might be less confusing...

    Yes, that's correct. It might be less confusing to use a non-square matrix, so you can see which dimension is which:


    int arr[4][2] {
    {0, 0}, // [0][0], [0][1]
    {0, 0}, // [1][0], [1][1]...
  17. Thread: Hi

    by -Adrian
    Replies
    6
    Views
    783

    Please start new threads for questions, and don't...

    Please start new threads for questions, and don't mix different topics in a single thread. Make your questions as precise as possible. Also, don't ask other users to do the research for you, the...
  18. Replies
    16
    Views
    911

    32 16 8 4 2 1 0 1 1 0 1 1 27 0 0 1...

    32 16 8 4 2 1
    0 1 1 0 1 1 27
    0 0 1 1 0 1 27 >> 1
  19. Thread: Hi

    by -Adrian
    Replies
    6
    Views
    783

    Welcome! :) Feel free to post questions if you...

    Welcome! :) Feel free to post questions if you get stuck. Code goes between
    tags.
  20. Nice work, and thanks for sharing. (It was...

    Nice work, and thanks for sharing.

    (It was cases like this where the like button was a perfect, unobtrusive instrument)
  21. You're most welcome, happy coding!

    You're most welcome, happy coding!
  22. Hmm, it should work. Have you tried again after...

    Hmm, it should work. Have you tried again after rebooting? I think that might be necessary on Windows.

    And make sure the file exists in that directory. If your instructions haven't been updated in...
  23. That simply looks like W7 vs W10 difference....

    That simply looks like W7 vs W10 difference. Judging by the screenshot of your system, you can simply click New and add the path to your MinGW bin directory to the list. The order of entered paths...
  24. In C++ that's not possible, so you'd have to...

    In C++ that's not possible, so you'd have to create a new variable and assign to that (or a const&). If you query the user, you might want to consider something like this:


    UserData query_user()...
  25. Replies
    9
    Views
    566

    jlucey, a few users here actually are difficult,...

    jlucey, a few users here actually are difficult, so don't apologize.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4