Search:

Type: Posts; User: Niccolo

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. @Asymptotic, glad you like that "One of my...

    @Asymptotic, glad you like that

    "One of my favorite things about C is that it can get me into thinking about the hardware that the code is actually running on."

    Indeed, C was originally created...
  2. I offer a slight expansion on @john.c's point. ...

    I offer a slight expansion on @john.c's point.

    Searching for a text match could be a unknown workload unless it is a simple match. If the file is ASCII only you may bypass localization issues. If...
  3. Unfortunately I don't know of any texts in C, but...

    Unfortunately I don't know of any texts in C, but then the subject is not so much a language concept, but a cross section of operating system details and computer science, with a bit of the...
  4. Replies
    9
    Views
    206

    My own favored solution to this problem is memory...

    My own favored solution to this problem is memory mapped file services. The interfaces differ on *Nix v Windows, but they are similar enough that a simple abstraction layer allows either OS to serve...
  5. Replies
    4
    Views
    125

    With full acknowledgement of @laserlight's point,...

    With full acknowledgement of @laserlight's point, the declaration of wxApp:OnInit is declared as virtual, so the function in the derived class will be virtual. While it is optional, there's more to...
  6. void writeDes(char * str1,char * str2);

    void writeDes(char * str1,char * str2);
  7. Replies
    10
    Views
    177

    Well, sometimes servers have little...

    Well, sometimes servers have little glitches...your post of 21 minutes ago appeared, to try again.
  8. Replies
    4
    Views
    180

    Since we have no code to study, we have to assume...

    Since we have no code to study, we have to assume from your description that you have declared global variable in socket.h. If by "redefinition" you are referring to the fact that the linker may...
  9. Replies
    10
    Views
    292

    C was purposely created to replace an assembler...

    C was purposely created to replace an assembler (to be a CPU independent assembler level language) to write the UNIX operating system.

    Rust isn't targeting such a direction. It is not for use in...
  10. Replies
    5
    Views
    174

    @zach, they're teasing you about the include file...

    @zach, they're teasing you about the include file configuration. Find where "windows.h" exists, and make sure that's in the include path.

    Of course, that will lead you to the next problem,...
  11. @Zeus_ There are so many absolutely free C++...

    @Zeus_

    There are so many absolutely free C++ compilers and IDE's that I have some trouble understanding why anyone would use TurboC++ unless targeting outdated operating system targets.

    What OS...
  12. Replies
    10
    Views
    195

    RyanC, the mystery you're probing is found by...

    RyanC, the mystery you're probing is found by knowing assembler, and how the CPU operates. It is rather primitive, which means writing to the CPU in it's own language is rather detailed, tedious and...
  13. Replies
    24
    Views
    307

    Well, as declared, a char * monkey represents a...

    Well, as declared, a char * monkey represents a non constant string.

    const char * monkey = "whatever";

    would declare that "whatever" is const, and can't be changed.
  14. Replies
    24
    Views
    307

    I just wanted to point out that in Windows,...

    I just wanted to point out that in Windows, Visual Studio 2017 and 2019 easily install and support CLang "out of the box" - very easy setup and installation (basically just check the box, it does...
  15. Replies
    6
    Views
    179

    One could oversimplify the answer by saying...

    One could oversimplify the answer by saying malloc can return just about anything, and is unpredictable.

    While true, there are some answers you may find of interest.

    One thing malloc might...
  16. Replies
    6
    Views
    179

    size_t diff = b - a; I must disagree...

    size_t diff = b - a;




    I must disagree with this observation.

    b was assigned
  17. Replies
    6
    Views
    176

    Yeah, but I didn't make it clear it was about...

    Yeah, but I didn't make it clear it was about order of precedence :)
  18. Replies
    6
    Views
    176

    Just so I'm clear, the acronym DLL usually means...

    Just so I'm clear, the acronym DLL usually means "dynamic link library", but in this context I think you're using it to refer to a double linked list. I'll assume it's a double linked list.

    Let's...
  19. Replies
    15
    Views
    1,194

    I nearly forgot that I said I'd return to this,...

    I nearly forgot that I said I'd return to this, and it took a rainstorm blocking me from doing other things to notice this particular oversight.

    So, I thought I'd check, and indeed when I went...
  20. Replies
    6
    Views
    205

    First, if your compiler has alternate versions of...

    First, if your compiler has alternate versions of scanf, consider using them. If the user just continues typing more than 10 characters, you'll have a crash.

    That said, you have two basic problem....
  21. Replies
    7
    Views
    224

    No. It means 2 in length. Two of them. 0 is...

    No. It means 2 in length. Two of them.

    0 is the first
    1 is the second
    2 would be the third, but you don't have a third

    You'd have to ask for [3] of them
  22. To my eye: P2OUT ^=BIT5, // call the...

    To my eye:


    P2OUT ^=BIT5, // call the following delay keynum number of times

    int i=0;

    for(i=0;i<=keynum;i++);

    {
  23. Replies
    12
    Views
    311

    Ok, first - odinutilities.h includes itself,...

    Ok, first - odinutilities.h includes itself, creating an infinite loop which ends up crashing the compiler.

    It should give an error regarding too many include files, but that depends on the...
  24. Thread: Virtual Help

    by Niccolo
    Replies
    13
    Views
    442

    Compiler warnings are configurable, so you may...

    Compiler warnings are configurable, so you may not have sufficient warning level enabled to see that one.

    The one thing that should be drilled into the mind about creating virtual base classes is...
  25. Replies
    6
    Views
    269

    @jonshouse, a quick 'tutorial' about this. As...

    @jonshouse, a quick 'tutorial' about this.

    As @salem points out, this is about pointer arithmetic.

    I thought it may be useful to see how that works in two primary forms.

    First, to be clear...
Results 1 to 25 of 206
Page 1 of 9 1 2 3 4