CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: XML related

Threaded View

  1. #1
    Join Date
    May 2015
    Posts
    500

    XML related

    Hello,
    May be instead of original XML Q (asked here before thinking a bit), I'll ask another one.

    I have to add a constant which has max value lets say :
    const unsigned short A1_MAX = 100;

    And use the same const to check the invalids, I guess I can check something like if the value is A1_MAX+1..Or is it better to define

    const unsigned short A1_INVALID = A1_INVALID+1;

    to look neat in the code ? Sorry just asking in terms of neatness and tidiness of code..


    Thanks a lot
    Stay safe
    pdk
    Last edited by pdk5; April 30th, 2020 at 12:18 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured