#include<iostream>
#include<fstream>
#include <cstring>
using namespace std;
int main(){
char a[14] ="haha";
cout<<"char[14]: "<<sizeof(a)<<" "<<strlen(a)<<endl;
ofstream fout;
fout.open("disk.txt");
fout<<a;
fout << "\n";
fout.close();
return 0;
}
我想输出14个字符到文本里去,而不是只有4个,请问怎么实现