当前位置: 技术问答>linux和unix
运行的程序没权限,要自己改权限才能运行
来源: 互联网 发布时间:2016-12-18
本文导语: #include #include int main() { FILE *fp; if ((fp = fopen("1.txt", "w+")) == NULL) { printf("fopen error!n"); } /*if (fwide(fp, 3) _IO_file_flags && _IO_LINE_BUF) { printf("line buffered!n"); } else if (fp->_IO_file_flags && _IO_UNBUFFERED)...
#include
#include
int main()
{
FILE *fp;
if ((fp = fopen("1.txt", "w+")) == NULL)
{
printf("fopen error!n");
}
/*if (fwide(fp, 3) _IO_file_flags && _IO_LINE_BUF)
{
printf("line buffered!n");
}
else if (fp->_IO_file_flags && _IO_UNBUFFERED)
{
printf("NO buffe!n");
}
else
{
printf("Full buffer!n");
}
if (fclose(fp)
#include
int main()
{
FILE *fp;
if ((fp = fopen("1.txt", "w+")) == NULL)
{
printf("fopen error!n");
}
/*if (fwide(fp, 3) _IO_file_flags && _IO_LINE_BUF)
{
printf("line buffered!n");
}
else if (fp->_IO_file_flags && _IO_UNBUFFERED)
{
printf("NO buffe!n");
}
else
{
printf("Full buffer!n");
}
if (fclose(fp)