70,037
社区成员
发帖
与我相关
我的任务
分享#include <stdio.h>
#include <string.h>
#include "stdafx.h"
int main(int argc, char* argv[])
{
char lpBuf[]="Hello World!";
FILE* pFile=fopen("COM1","w");
if(pFile==NULL)
return 1;
fwrite(lpBuf,sizeof(char),strlen(lpBuf),pFile);
fclose(pFile);
return 0;
}