#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
FILE *p = fopen("a.txt", "w");
if (p == NULL){
cout << "no" << endl;
exit(0);
}
char *s = "woasdfsdf";
while (s!=NULL){ //这里不对,改成*s!='\0'才对,为什么原来的错了?
fputc(*s, p);
s++;
}
fclose(p);
}zy112
Xyino_Snake