我刚买了本谭浩强的C++程序设计,里面说的打上一些字符,比如this is a C++progrem,这是在哪里输出的?

来源:百度知道 编辑:UC知道 时间:2024/06/04 15:35:02

用输入输出流函数实现,cout<<"this is a C++program"<<endl;
(endl--换行并刷新流)
包含在头文件#include<iostream>中

PRINTF("this is a C++progrem,")似乎就可以了,LZ说的是注释吗?

#include<iostream.h>
#include<stdlib.h>
int main()
{
cout<<"this is a C++progrem!"<<endl;//就是在这里 这是一个函数调用的德输入输出命令
system("pause");
return 0;
}