gpt4 book ai didi

c - "Stray '\226 ' in program"编译器错误

转载 作者:行者123 更新时间:2023-11-30 19:55:38 25 4
gpt4 key购买 nike

我写了下面的代码。它是实现一个双向链表。但弹出错误。

while(x==1); // This line showed errors
return 1;

错误:

DoublyLinkedList.c: In function `main':
DoublyLinkedList.c:194: error: stray '\226' in program
DoublyLinkedList.c:194: error: stray '\128' in program
DoublyLinkedList.c:194: error: stray '\156' in program
DoublyLinkedList.c:194: error: `The' undeclared (first use in this function)
DoublyLinkedList.c:194: error: (Each undeclared identifier is reported only once
DoublyLinkedList.c:194: error: for each function it appears in.)
DoublyLinkedList.c:194: error: parse error before "list"
DoublyLinkedList.c:194: error: stray '\226' in program
DoublyLinkedList.c:194: error: stray '\128' in program
DoublyLinkedList.c:194: error: stray '\157' in program

什么是杂散误差?这些随机数是什么?

最佳答案

我从 Microsoft Word 文档中剪切粘贴了一些代码。我的文本编辑器显示了减号,但它实际上是八进制 226 或十六进制 96 的值。减号应该是十六进制 2D。当我将代码作为二进制文件打开时,我可以看到它 - 八进制 226 作为一个 block 显示在 ASCII 列表中。

关于c - "Stray '\226 ' in program"编译器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12111606/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com