freelanceprogrammers.org Forum Index » C

QUERRY about two-character punctuation tokens, called digrap


View user's profile Post To page top
ashish_gupta... Posted: Tue Jan 18, 2005 12:39 pm


Joined: 24 Jan 2005

Posts: 2
QUERRY about two-character punctuation tokens, called digrap
Hi,
C++ also recognizes two-character punctuation
tokens, called digraphs. The digraphs and their
equivalent tokens are:

<: [
:> ]
<% {
%> }
%: #
%:%: ##

The following program is valid in both C99 and C++:

%:include <stdio.h>


void copy(char d<::>, const char s<::>,
int len)
<%
while (len-- >= 0)
<%
d<:len:> = s<:len:>;
%>
%>



int main() <%
return 0;
%>

My question is what is the need of such digraphs?
For example why one will use `<%` in place of `{`?
I tried searching on google but was unable to find
something satisfactory.If someone can give me any
pointer or any useful link it would be very helpful.

Thanks for your attention.

Regards
Ashish.



__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
Reply with quote
Send private message
View user's profile Post To page top
suparna69 Posted: Wed Jan 19, 2005 9:34 pm


Joined: 28 Dec 2004

Posts: 3
QUERRY about two-character punctuation tokens, called digrap
Can some one let me know what books you used for
following: (please include author name and publisher
if possible)

Numerical Analysis
Differential Calculus
Integral Calculus
Linear Algebra
Engineering Mathematics



__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help