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

Search:

Type: Posts; User: Marc G

Search: Search took 0.03 seconds.

  1. Thread: literal string

    by Marc G
    Replies
    20
    Views
    1,236

    Re: literal string

    Arjay, there are lots of good books on modern C++ ;)
    My book, Professional C++ 4th Edition, does include almost all C++11, C++14, and C++17 features, but it requires at least some basic programming...
  2. Thread: literal string

    by Marc G
    Replies
    20
    Views
    1,236

    Re: literal string

    Zio, as 2kaud said, that book is ancient.
    If you come to a job interview with me, and you don't know anything about modern C++ (C++11, C++14, and C++17), then you'll fail the interview.
    This is a...
  3. Thread: literal string

    by Marc G
    Replies
    20
    Views
    1,236

    Re: literal string

    Then you are using a very old book.
    When was the book released?
    What's the title?
  4. Thread: literal string

    by Marc G
    Replies
    20
    Views
    1,236

    Re: literal string

    Older compilers never gave a warning when you used char*, maybe to not break legacy code. Anyway, modern compilers are starting to give a compilation warning. You are correct, it's just a warning,...
  5. Thread: literal string

    by Marc G
    Replies
    20
    Views
    1,236

    Re: literal string

    Arjay already moved the thread to the correct forum.
    It's just for the future, please take care where you post your question.
  6. Thread: literal string

    by Marc G
    Replies
    20
    Views
    1,236

    Re: literal string

    A string literal such as "test" is a const char*.
    So:

    const char* theta ="test";

    A const char* is a read-only string. The compiler can do things such as string pooling. For example, if you use...
Results 1 to 6 of 6


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)