intXstrLength=String(Xstr).length();
if(Xstr[XstrLength-1]!='|'){Xstr[XstrLength]='|';
Xstr[XstrLength+1]='\0';
waht's '|' means? where '|' come from?
Thanks
intXstrLength=String(Xstr).length();
if(Xstr[XstrLength-1]!='|'){Xstr[XstrLength]='|';
Xstr[XstrLength+1]='\0';
waht's '|' means? where '|' come from?
Thanks
'A' means the character constant A
'B' means the character constant B
So now you know what '|' is.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
'|' is ASCII character 124 Decimal, 7C Hexadecimal.
It can be used for creating a pipe between two command line apps.
In this case, without seeing all your code or possible data file data, it might be used as a field separator, in a record in a data file.
As for "annotating" your code above, you would need to provide more information, and usually a program that can show the context of these lines. Preferably not a huge program.
Plus, your code appears to be C++, not C. This is a C Programming forum.