2 1 C:\Users\22804\Desktop\机械臂结构资料\计算.cpp [Error] stray '\273' in program
时间: 2023-08-15 21:04:43 浏览: 116
引用\[1\]:程序编译出错: $ cc a.c a.c: In function ‘main’: a.c:16:9: error: stray ‘\302’ in program else if (c == ' ' ¦¦ c == '\n' ¦¦ c == '\t') ^ a.c:16:9: error: stray ‘\246’ in program a.c:16:9: error: stray ‘\302’ in program a.c:16:9: error: stray ‘\246’ in program a.c:16:32: error: expected ‘)’ before ‘c’ else if (c == ' ' ¦¦ c == '\n' ¦¦ c == '\t') ^ a.c:16:32: error: stray ‘\302’ in program a.c:16:32: error: stray ‘\246’ in program a.c:16:32: error: stray ‘\302’ in program a.c:16:32: error: stray ‘\246’ in program 。
引用\[3\]: 如果在预处理过程中出现error:stray’\243’in program时 1.可能在给变量起名时用了汉字 2.存在汉语标点 在我用的codeblocks中这个很容易发现的,如果是英文字符字符会变成其他颜色,所以要解决这个问题只需要去查看字符的颜色就可以了 。
问题:2 1 C:\Users\22804\Desktop\机械臂结构资料\计算.cpp \[Error\] stray '\273' in program
回答: 根据引用\[1\]中的错误信息,"stray '\273' in program"表示在程序中出现了无效的字符。根据引用\[3\]中的解释,这可能是因为在变量命名中使用了汉字或存在汉语标点。请检查你的代码中是否存在这样的情况,并将其修改为有效的字符。
#### 引用[.reference_title]
- *1* [C语言错误:error stray ‘ 302’ in program](https://blog.csdn.net/stevensxiao/article/details/100068514)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [关于QT中 **.cpp:1:1: error: stray '\377' in program 错误解决](https://blog.csdn.net/Chasing_Chasing/article/details/78707160)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [已解决error:stray‘\243‘in program异常的正确解决方法,亲测有效!!!](https://blog.csdn.net/weixin_50843918/article/details/129703009)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]