#include <iostream>
using namespace std;
int main()
{
cout<<"Hello";
cout<<"C++";
return 0;
}
输出:HelloC++(字与字间无空格)
#include <iostream>
using namespace std;
int main()
{
cout << "hello";
cout << " ";//打出空格
cout << "nihao";
return 0;
}
输出:hello nihao
#include <iostream>
using namespace std;
int main()
{
cout << "hello" << endl;
cout << "nihao" << endl;
return 0;
}
输出:hello
nihao