有以下程序: include <fstream> include <string> using namespace std; int main () {char ch[]
有以下程序:
include <fstream>
include <string>
using namespace std;
int main ()
{
char ch[] = "The end";
ofstream outstr("d:\\put.txt", ios_base: :app);
for (int i = 0; i < strlen(ch ); i++ )
outstr.put(ch[i]);
outstr.close();
return 0;
}
程序实现的功能是【 】。