cout << "Str_1" << Var_1 <<…<< endl;
(打印 cout 和 endl 之间列出的项)
示例:
cout << "the value of X is" << X << endl;
在本示例中,如果 X 等于 5,那么输出为:the value of X is 5