How to concatenate two strings in C++?

First of all, don’t use char* or char[N]. Use std::string, then everything else becomes so easy! Examples, Easy, isn’t it? Now if you need char const * for some reason, such as when you want to pass to some function, then you can do this: assuming this function is declared as: Explore std::string yourself starting … Read more

How to correctly use Boolean functions?

I’m having trouble with the following assignment, mostly because I don’t understand how a Boolean function works. “Write a function called Divisible that takes in two numbers as parameters. Return True if the first number is evenly divisible (no remainder) by the second number. Otherwise return False. Hint: Use %” Currently what I have is: … Read more

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