-
April 29th, 2020, 11:34 PM
#1
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|