string-constant

Declare HTML tag as a string in VB.NET

Hi, I'm trying to assign the following HTML as a value to variable type string 'here's the tag '$("#close").click(function(){$.notifyBar({ html: "Click 'close' to hide notify bar", close: true, delay: 1000000 });}); Dim htmltag = "$("#close").click(function(){$.notifyBar({ html: "Click 'close' to hide notify bar", clos...

static string constants in class vs namespace for constants [c++]

I want to declare string constants that will be used across various classes in the project. I am considering two alternatives Option 1: #header file class constants{ static const string const1; }; #cpp file const string constants::const1="blah"; Option 2: #header file namespace constants{ static const string const1="bla...

What is the difference between a String Constant and String Literal in C?

What's the difference between a String Constant and String Literal in plain C? This question is similar to another: http://stackoverflow.com/questions/25746/whats-the-difference-between-a-string-constant-and-a-string-literal ...except that one was regarding Objective-C (using NSString) and not C. ...