Search:

Type: Posts; User: Asymptotic

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    25
    Views
    752

    True story: (And I am not drawing paralells to...

    True story: (And I am not drawing paralells to you, this is for entertainment only) I knew a guy who spent several days on a school projected, frustrated, telling me that the professor wouldnt help...
  2. Replies
    25
    Views
    752

    Try Visual Studio Code with GCC. That's what I...

    Try Visual Studio Code with GCC. That's what I use. It's fast and works great. You can get an extension and get GUI debugging functionality out of it using GDB or LLDB or whatever you want.
  3. To some degree, these "issues" can even be...

    To some degree, these "issues" can even be recognized in non-embedded systems as well with a slightly exaggerated example.

    For example, if you write some code which counts to 5 million and then...
  4. Replies
    17
    Views
    729

    Niccolo that is exactly the main reason I asked...

    Niccolo that is exactly the main reason I asked this question. I began to realize that the concept of a multidimensional array at least as shown here in C, is basically an abstract concept that...
  5. Replies
    5
    Views
    265

    Gotcha, thanks. Yeah sounds like a recipe for...

    Gotcha, thanks. Yeah sounds like a recipe for difficult-to-find bugs!

    On another note, does anyone know more about
    ntdll!RtlIsNonEmptyDirectoryReparsePointAllowed? I'm going to go and look into...
  6. Replies
    5
    Views
    265

    Gah. Well strangely even with -Wall it still...

    Gah. Well strangely even with -Wall it still doesn't flag anything and builds just fine.

    But that was the problem. Made those 2 changes and it actually builds and runs way faster, and works...
  7. Replies
    5
    Views
    265

    Strange MinGw Windows runtime error

    15778I have this program:


    #include <stdio.h>
    #include <stdlib.h>
    int main(void)
    {
    int (*a)[5][5] = calloc(25, 1);
    *a[0][0] = 5;
  8. Replies
    17
    Views
    729

    I originally found myself needing to index into a...

    I originally found myself needing to index into a multi dimensional array but didnít know the size at compile-time. Then I realized I didnít know what the hell I was doing so nows a good time to get...
  9. Replies
    17
    Views
    729

    Wow thanks laserlight. I greatly appreciate you...

    Wow thanks laserlight. I greatly appreciate you answering those questions with examples!

    So what's intersting now is that this has made me begin to think that structs are actually...
  10. Replies
    17
    Views
    729

    Cooper that was a mistake. Fixed. Interesting....

    Cooper that was a mistake. Fixed.

    Interesting. The way the author of the article you read did it actually may be noncontiguous memory. The way I'm looking at it is a multidimensional array is...
  11. Replies
    17
    Views
    729

    I did some further experimentation and wrote this...

    I did some further experimentation and wrote this as well:



    int *three = malloc(9*sizeof(int));
    *(three + 0) = 0;
    *(three + 1) = 1;
    *(three + 2) = 2;
    *(three + 3) = 3;
    ...
  12. Replies
    17
    Views
    729

    Array and other "Special pointers"

    C continues to fascinate me because although it is a relatively "small language" in regards to number of constructs/syntax, there are always some edge cases I haven't yet needed to use such as...
  13. Replies
    4
    Views
    229

    @ordak honestly you might like to check into...

    @ordak honestly you might like to check into Microsoft Z3 SMT Solver. It sounds like you could use this for your Sudoku work as well. I've used it to solve other constrained problems. Check out this...
  14. Replies
    4
    Views
    229

    How to write a pro-grade hashtable

    I see all of these basic hashtable tutorials where they just calculate a hash with a modulus and they say "dont use this in production."

    So my question is... What CAN I use in production? What...
  15. Ah I like it. If only it had WxWidgets that'd be...

    Ah I like it. If only it had WxWidgets that'd be even better! Thanks.
  16. Wow flp1969, thank you! Definitely learned...

    Wow flp1969, thank you! Definitely learned something there, especially with that last syntax. The confusion I had stemmed from the fact that I had never seen that last snippet syntax used before....
  17. Returning and using pointers to pointers

    This is the first time I've ever had to use pointers to pointers aside from the all-so-known char **argv.

    I have a couple of things I want to mention ahead of time. First of all, the intended...
  18. Replies
    29
    Views
    1,288

    Wouldn't you say that defining static functions...

    Wouldn't you say that defining static functions in a .c file and/or not placing function signatures/struct defs in .h files would make them "private?"

    I've always seen the ability to make things...
  19. I write C code on Windows, macOS, and Linux using...

    I write C code on Windows, macOS, and Linux using Visual Studio Code and GCC. I typically avoid the OS-specific APIs unless absolutely necessary.
  20. Ok should be fixed for real now.

    Ok should be fixed for real now.
  21. Ah ok sorry I just "fixed" it... Still a color...

    Ah ok sorry I just "fixed" it... Still a color but at least it's visible now lol.
  22. How can I improve my debugging of off-by-ones in C?

    I've been programming in C for 2-3 years now and I use it professionally at work as well.

    One sticking point for me that I've seen happen over and over is I'd like to improve at debugging...
  23. Replies
    3
    Views
    242

    Why Cin and Cout?

    I don't understand what cin and cout accomplish in C++ that isn't already accomplished in C's similar functionality like fgets, scanf, etc... Of course they're probably also compatible with...
  24. C++ Development Environment VM, Docker, Virtualenv

    Tl;Dr - Is there any good virtual machine with most C++ common libraries pre-installed such as Boost, Qt5, and crypto libraries? Could also be a Docker container or virtual environment. I would...
  25. That's a possibility for sure but was wondering...

    That's a possibility for sure but was wondering if the functionality was in gdb that way I could examine other buffers as well. I'm guessing gdb does not do this? I've used ptype for stack buffers...
Results 1 to 25 of 104
Page 1 of 5 1 2 3 4