运行程序,从键盘上输入“This is a C++ prog!”后输出到一个文件中,并显示在屏幕上,显示结果:This is a C++ prog!。
#include
#include
#include
using namespace std;
void main()
{char str[20];
ofstream outf("D:\tem.dat", ios::trunc);
Cin>>str;
outf< Outf.close(); int i=0; while(str[i]! ='\0') {cout< i++; } cout< }
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服