Search:

Type: Posts; User: Niccolo

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    4,684

    FindItem called on line 75, where the first error...

    FindItem called on line 75, where the first error is indicated.

    That function is defined around line 47 or so, like this:



    int LLSList::FindItem(int GetItem, LNode*& nodeIter) {...
  2. Replies
    3
    Views
    8,021

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

    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...
  4. Replies
    4
    Views
    9,730

    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...
  5. Replies
    6
    Views
    6,961

    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...
  6. Replies
    5
    Views
    9,153

    @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...
  7. Replies
    1
    Views
    4,403

    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...
  8. Replies
    7
    Views
    5,015

    @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++).
  9. Replies
    6
    Views
    6,611

    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;
  10. Replies
    4
    Views
    5,608

    @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...
  11. Replies
    13
    Views
    10,892

    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...
  12. Replies
    6
    Views
    7,648

    @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...
  13. Replies
    6
    Views
    7,648

    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...
  14. 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...
  15. Replies
    9
    Views
    11,950

    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...
  16. Replies
    4
    Views
    6,580

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

    void writeDes(char * str1,char * str2);
  18. Replies
    10
    Views
    5,709

    Well, sometimes servers have little...

    Well, sometimes servers have little glitches...your post of 21 minutes ago appeared, to try again.
  19. Replies
    11
    Views
    13,323

    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...
  20. Replies
    10
    Views
    9,394

    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...
  21. Replies
    5
    Views
    6,936

    @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,...
  22. @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...
  23. Replies
    10
    Views
    17,959

    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...
  24. Replies
    24
    Views
    10,897

    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.
  25. Replies
    24
    Views
    10,897

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