const string vs. #define

Prefer the second option. If you use the first option (preprocessor), you are limiting your flexibility with the object.

Consider the following… You won’t be able to compare strings this way:

if (str1 == "some string")
{
    // ...
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)