Search:

Type: Posts; User: Niccolo

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    135

    If I understand your points, and I'm not certain...

    If I understand your points, and I'm not certain that I do, I think I can loosely agree.

    The hardware has very limited data structure in it's inherent operation. Most modern hardware has a stack,...
  2. Replies
    12
    Views
    158

    Yes. Actually part of the point of vector is...

    Yes. Actually part of the point of vector is exactly that, along with dynamic allocation when required (though there are lots of points to be made about that with respect to performance).

    The...
  3. It may seem so in some early phase of study, but...

    It may seem so in some early phase of study, but I can assure you this will not be true as you progress. You can read faster than anyone can speak. You can choose subject material to study more...
  4. Replies
    6
    Views
    138

    To expand on Laserlight's point, one of the...

    To expand on Laserlight's point, one of the primary reasons to use GCC is that it is often first to implement current/new C++ features, so keeping one's GCC toolset current is usually quite...
  5. Replies
    5
    Views
    310

    @microcontroller, You are at a position I...

    @microcontroller,

    You are at a position I think should provoke some thought on how to proceed.

    In C, you'd do as @flp1969 suggests, which is to use the C API of Windows. It's painful, but it...
  6. Replies
    1
    Views
    116

    This code is a slightly questionable attempt at...

    This code is a slightly questionable attempt at rounding into a 16 bit signed output. I say questionable because depending on "Float_Value", this could overflow.

    The 0.5 is a means of 5/4 rounding...
  7. Replies
    7
    Views
    294

    @christop What @jimblumberg is saying is...

    @christop

    What @jimblumberg is saying is correct.

    It is among the "ISO" coding standards to never mix these operations in a single clause that way (Stroustrup/Sutter's site on ISO C++).
  8. Replies
    6
    Views
    295

    if (header[i] = 24) This is an assignment, not...

    if (header[i] = 24)

    This is an assignment, not a test


    (*p) = c;//exception always here

    ++p;
  9. Replies
    4
    Views
    243

    @I C everything, @jimblumberg 's message goes...

    @I C everything,

    @jimblumberg 's message goes deeper.

    However, there's no context. This is an isolated function.

    In C++ I'd expect to see a pixel, not a char or unsigned char pointing to...
  10. Replies
    13
    Views
    1,005

    The function of interest isn't in C because of...

    The function of interest isn't in C because of the nature of C. It was originally purpose built to write the UNIX operating system while translating the assembler source into a language operating...
  11. @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...
  12. 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...
  13. 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...
  14. Replies
    9
    Views
    886

    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...
  15. Replies
    4
    Views
    308

    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...
  16. void writeDes(char * str1,char * str2);

    void writeDes(char * str1,char * str2);
  17. Replies
    10
    Views
    463

    Well, sometimes servers have little...

    Well, sometimes servers have little glitches...your post of 21 minutes ago appeared, to try again.
  18. Replies
    11
    Views
    1,147

    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...
  19. Replies
    10
    Views
    583

    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...
  20. Replies
    5
    Views
    357

    @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,...
  21. @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...
  22. Replies
    10
    Views
    337

    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...
  23. Replies
    24
    Views
    1,037

    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.
  24. Replies
    24
    Views
    1,037

    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...
  25. Replies
    6
    Views
    295

    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...
Results 1 to 25 of 216
Page 1 of 9 1 2 3 4