#include <QString>
#include <QTextStream>

int main() {
    QTextStream cout(stdout);
    QTextStream cin(stdin);

    QString s1("This "), s2("is a "), s3("string.");
    s1 += s2;  
    QString s4 = s1 + s3;
    cout << s4 << endl;

    QString s5 = QString("The length of '%1' is: %2 characters.")
        .arg(s4).arg(s4.length()); /* Argument parametrization */
    cout << s5 << endl;

    cout << "Enter a sentence: " << endl;
    s2 = cin.readLine();  /*s2 will get the entire line.*/
    cout << "Here is your sentence: \n" << s2 << endl;
    cout << "The length of it was: " << s2.length() << endl;
    return 0;
}
