warning C4047: “函数”:“const char *”与“char”的间接级别不同
#include<stdlib.h> #include<stdio.h>
#include<string.h>
void main()
{
char ch, name1;
char name;
FILE *file;
long count, last;
puts("请输入要打开的文本文件:\n");
char gets(name);
file = fopen(name1, "r");
char if(file == NULL)
printf("打开文件失败.\n");
for (file = 0L; count < last; count++)
{
fseek(file, -count, SEEK_END);
ch = getc(file);
if (ch != NULL);
putchar(ch);
};
system("PAUSE");
警告 1 warning C4047: “函数”:“const char *”与“char”的间接级别不同 d:\my documents\documents\visual studio 2013\新建文件夹\project1\project1\pr1.c 12 1 Project1
警告 2 warning C4024: “fopen”: 形参和实参 1 的类型不同 d:\my documents\documents\visual studio 2013\新建文件夹\project1\project1\pr1.c 12 1 Project1
错误 3 error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\my documents\documents\visual studio 2013\新建文件夹\project1\project1\pr1.c 12 1 Project1
错误[color=#FF3300] [b]4 error C2143: 语法错误 : 缺少“;”(在“==”的前面)[ d:\my documents\documents\visual studio 2013\新建文件夹\project1\project1\pr1.c 13 1 Projec
警告 5 warning C4047: “!=”:“int”与“void *”的间接级别不同 d:\my documents\documents\visual studio 2013\新建文件夹\project1\project1\pr1.c 19 1 Project1
6 IntelliSense: 应输入“;” d:\My Documents\Documents\Visual Studio 2013\新建文件夹\Project1\Project1\pr1.c 13 15 Project1
主要是第四个错误和第六个错误是没弄懂!