Modernes C++ programmieren

Okt 23, 2024

lst-0039-book.cpp

// https://godbolt.org/z/chTTqPjrM 
#include <string>
#include <iostream>
int main() {
    std::cout << "C-Zeichenkettenliteral\n";
    // using std::literals::string_literals::operator""s;
    // using namespace std::string_literals;
    // using namespace std::literals::string_literals;
    using namespace std::literals;
    std::cout << "Echter string\n"s;
}