CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: jlb1

Search: Search took 0.02 seconds.

  1. Re: Will this header only strategy, avoid circular inclusion?

    Well unless you're dealing with templates you shouldn't have executable code inside header files. Definitions belong in source files not #include files.

    By the way did you try compiling that code?
  2. Re: Shared Lib: Can const char * travel between client and shared libs?

    Are you sure that you're not returning a c_str() from an object that is either a "temporary" or one that goes out of scope?
  3. Re: How to find where a variable takes value? gdb - watch- is time consuming, ineffec

    That really doesn't answer the question of "what do you find that is lacking with this tool".

    But if you're looking to see where a particular variable is possibly being changed I would expect to...
  4. Re: How to find where a variable takes value? gdb - watch- is time consuming, ineffec

    Then perhaps you should work on fixing these issues. If you eliminate the global variables and properly pass variables back and forth to your functions as required you will find that locating where a...
  5. Re: How to find where a variable takes value? gdb - watch- is time consuming, ineffec

    What is making using the debugger so difficult? Do you have extremely large functions? Quite a few global variables? Both?
  6. Replies
    22
    Views
    15,450

    Re: File name change

    Not according to the standards status page: https://isocpp.org/std/status

    I don't believe that the final balloting is complete as of today.

    Even if there is a difference between the two pages...
  7. Replies
    22
    Views
    15,450

    Re: File name change

    Yes std::filesysystem is considered experimental, as are any of the other C++17 features, remember C++17 has not been ratified. However if you're afraid to use std::filesystem then you may want to...
  8. Replies
    12
    Views
    2,427

    Re: Structured binding as initialisation

    Have you considered using std::filesystem instead of the fstream?
  9. Re: Operator overloading - In class or global?

    You may be interested in this article by Scott Meyers.
  10. Re: finding and fixing errors by using STL techniques

    There is a stipulation in these exercises that state that both of those functions can not be modified. From Chapters 20.1 and 20.1.1:
    "The assumption is that the data is stored on the free store and...
  11. Re: Insert in a file without overwriting without using a 2nd file using C/C++

    No, while you can overwrite characters anywhere in the file, you can only add characters to the end of the file.
  12. Thread: Getline error

    by jlb1
    Replies
    8
    Views
    2,020

    Re: Getline error

    That's strange, my compiler gives me several hints as to what may be causing the problem:


    Perhaps you need to increase your compiler warning level and fix any and all warings?

    Did you run the...
  13. Replies
    2
    Views
    1,317

    Re: reading a text file into two arrays issue

    It looks like you need to have two different variables that keep track of the counts, one for employees, and one for families.

    And please use code tags when posting code.
  14. Replies
    5
    Views
    1,272

    Re: My "if" statements will not compile correctly

    Where do you assign values to both guessW and cars?
  15. Replies
    9
    Views
    5,325

    Re: How to return the integer value of a string?

    Probably because those cin and cout statements belong inside your main function, along with the definition of binaryInt.
  16. Re: how to properly concatenate two std::string with binary data

    If your "data" has embedded '\0' characters you probably should be using std::vector<unisigned char> instead of a string.
Results 1 to 16 of 16





Click Here to Expand Forum to Full Width

Featured