View Single Post
  #2 (permalink)  
Old 11-30-2007, 05:10 AM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 116
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
the L character indicates that the string literal is a "wide string literal". In other words, an array of wchar_t rather than just plain old char.

the 'wide char' is usually used for internationalisation, where you might want to use unicode instead of standard 1-byte characters.
(Note - the size of wchar_t is not 'set in stone', though on most systems I'm aware of, it usually supports at least UTF-16)

the C++ library has a whole bunch of wide character tools, all of which are similar to their 'narrow character' equivalents, but prefixed with a w. eg, wcout, wstring, wcin, etc.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to Bench For This Useful Post:
HelloWorld (11-30-2007)