I once saw this line of code:
std::cout %lt;%lt; "Hello world!" %lt;%lt; std:: endl;
And am wondering what %lt;%lt;
means.
I once saw this line of code:
std::cout %lt;%lt; "Hello world!" %lt;%lt; std:: endl;
And am wondering what %lt;%lt;
means.
Looks like "%lt;" is supposed to be escaped for http transmission. Like:
%lt;%lt;
was supposed to be:
<<
You must have seen that online. Someone uploaded this line:
std::cout << "Hello world!" << std::endl;
Which was translated to this for output to html:
std::cout << "Hello world!" << std::endl;
Because, of course, <
is the html entity for <
.
Finally, something somewhere decided to change the ampersands to percent signs, possibly as part of a url-encoding scheme.
My first thought was that maybe you saw code that was using C trigraphs. However, there doesn't appear to be a trigraph for <
or >
.
The C trigraphs and their single-character equivalents are:
??= #
??/ \
??' ^
??( [
??) ]
??! |
??< {
??> }
??- ~