Home >
Article > Backend Development > Usage of cout<
In C, cout<
##Usage of cout<
Concept:
cout<Usage:
Use cout<cout << data << endl;where:
Effect:
When using cout<Example:
#include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; // 输出 "Hello World!" 再换行 cout << 123 << endl; // 输出数字 123 再换行 return 0; }</p> <p>Output:<strong></strong></p> <pre class="brush:php;toolbar:false">Hello World! 123
Notes:
The above is the detailed content of Usage of cout<