鱼C论坛

 找回密码
 立即注册
查看: 723|回复: 2

[已解决]第一节课后作业

[复制链接]
发表于 2020-11-23 19:59:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
if((handle = _findfirst(strcat(thePath,"/*"), &fa) ) == -1L)

66        2        C:\Users\luyanan\Desktop\c++\2\zuoye.c        [Error] stray '\243' in program
66        2        C:\Users\luyanan\Desktop\c++\2\zuoye.c        [Error] stray '\250' in program
66        2        C:\Users\luyanan\Desktop\c++\2\zuoye.c        [Error] stray '\243' in program
66        2        C:\Users\luyanan\Desktop\c++\2\zuoye.c        [Error] stray '\250' in program
66        8        C:\Users\luyanan\Desktop\c++\2\zuoye.c        [Error] expected '(' before 'handle'
66        55        C:\Users\luyanan\Desktop\c++\2\zuoye.c        [Error] expected statement before ')' token
66        57        C:\Users\luyanan\Desktop\c++\2\zuoye.c        [Error] expected expression before '==' token
66        63        C:\Users\luyanan\Desktop\c++\2\zuoye.c        [Error] expected statement before ')' token

这不会做了,求救!!
最佳答案
2020-11-24 01:09:33
66    2      [Error] stray '\243' in program   这是告诉你:第 66 行 第 2 个字符为非英文字符,
66     8     [Error] expected '(' before 'handle'  这是给你明确 handle 前的左括号 (
后面的 55 个字符、57 个字符、63串个字符
我下面这一语句是纯英文字符,你复制替换你原来的,再运行试试

if((handle = _findfirst(strcat(thePath,"/*"), &fa)) == -1L)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-11-24 01:09:33 | 显示全部楼层    本楼为最佳答案   
66    2      [Error] stray '\243' in program   这是告诉你:第 66 行 第 2 个字符为非英文字符,
66     8     [Error] expected '(' before 'handle'  这是给你明确 handle 前的左括号 (
后面的 55 个字符、57 个字符、63串个字符
我下面这一语句是纯英文字符,你复制替换你原来的,再运行试试

if((handle = _findfirst(strcat(thePath,"/*"), &fa)) == -1L)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 1 反对 0

使用道具 举报

 楼主| 发表于 2020-11-24 12:55:35 | 显示全部楼层
万分感谢,终于做出来了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-20 00:20

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表