if((fp=fopen_s("E:\student.txt","wb"))==NULL),这个代码老是提示错误运行后系统提示是这个原因,warning C4129:'s' :unrecognized character escape sequence

来源:学生作业帮助网 编辑:六六作业网 时间:2024/07/15 05:45:13
if((fp=fopen_s("E:\student.txt","wb"))==NULL),这个代码老是提示错误运行后系统提示是这个原因,warningC4129:''s'':unrecognizedch

if((fp=fopen_s("E:\student.txt","wb"))==NULL),这个代码老是提示错误运行后系统提示是这个原因,warning C4129:'s' :unrecognized character escape sequence
if((fp=fopen_s("E:\student.txt","wb"))==NULL),这个代码老是提示错误
运行后系统提示是这个原因,
warning C4129:'s' :unrecognized character escape sequence

if((fp=fopen_s("E:\student.txt","wb"))==NULL),这个代码老是提示错误运行后系统提示是这个原因,warning C4129:'s' :unrecognized character escape sequence
if((fp=fopen_s("E:\\student.txt","wb"))==NULL); //E:\\student.txt注意是两个反斜杠,“\\”代表字符'\', 否则编译器会把\s当作一个转义字符看待而造成错误