cout << "Str_1" << Var_1 <<…<< endl;
(列印 cout 與 endl 之間的項目)
範例:
cout << "the value of X is" << X << endl;
在此範例中,如果 X 等於 5,則輸出是:the value of X is 5