String Delimiter

From NWN Lexicon
Revision as of 21:14, 22 August 2015 by Squatting Monk (talk | contribs) (Wikified article formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The quote characters ('"') are used to surround a literal string of text so the compiler knows to interpret that text as string data and not as language syntax.

void main()
{
    string sName = "Galryx";
    PrintString(sName);
}

 author: Charles Feduke, additional contributor(s): Frank Succardi