先向一个文本文件里写入你想要输入的文字,然后调用记事本打开这个文件#include#includevoidmain(){FILE*pFile=fopen("a.txt","w");charstr[]="你想要输入的字符串";fwrite(str,1,sizeof(str)/sizeof(str[0]),pFile);fclose(pFile);system("notepada.txt");}