, , std::ostream& const std::string&. :
fl << "!!!Hello World!!!" << endl;
, . std::string, char const*. , , , char const* const std::string&, .
, , - , std, :
namespace std { // Simplification:
std::ostream& operator<<(std::ostream& os, char const* str);
}
, . , , - - ADL . (, std) - , ADL, , , , . :
std::operator<<(f1, "!!!Hello World!!!") << std::endl;
std::getline(). , using namespace std using std::getline:
getline(std::cin, line);
std::cin , std::getline(), std:: .
, , . , std::string :
fl << std::string("!!!Hello World!!!") << endl;
, , std, , std. , .
std::ostream& void return os, << endl.
os << str. , os << str.c_str(), char const* std.
, .