How do I include the string header?

You want to include <string> and use std::string: #include <string> #include <iostream> int main() { std::string s = “a string”; std::cout << s << std::endl; } But what you really need to do is get an introductory level book. You aren’t going to learn properly any other way, certainly not scrapping for information online.

Why do I see THROW in a C library?

This header is likely shared between the C and C++ compiler for that vendor. Did you look what __THROW is defined as? I suspect something akin to: #ifdef __cplusplus #define __THROW throw() #else #define __THROW #endif Or for actual specifications: #ifdef __cplusplus #define __THROW(x) throw(x) #else #define __THROW(x) #endif As you can see, in a … Read more

What mean file with extension “h.in”?

These files are usually the input for autoconf which will generate final .h files. Here’s an example from PCRE: #define PCRE_MAJOR @PCRE_MAJOR@ #define PCRE_MINOR @PCRE_MINOR@ #define PCRE_PRERELEASE @PCRE_PRERELEASE@ #define PCRE_DATE @PCRE_DATE@ Autoconf will replace all variables (@…@) with the respective values and the result will be a .h file.

In what cases we need to include ?

In short, don’t use it; use <assert.h>. C++11 removed any formal guarantee of a “c….” header not polluting the global namespace. It was never an in-practice guarantee, and now it’s not even a formal guarantee. Hence, with C++11 there is no longer any conceivable advantage in using the “c….” header variants, while there is the … Read more

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