例如。当我写这个时-> scanf(“%d”,&newnode->x);
错误是,
list.c:18:7: error: non-ASCII characters are not allowed outside of literals and
identifiers
scanf(“%d”,&newnode->x);
^
list.c:18:10: error: expected expression
scanf(“%d”,&newnode->x);
^
list.c:18:12: error: non-ASCII characters are not allowed outside of literals
and identifiers
scanf(“%d”,&newnode->x);
^
list.c:18:11: error: use of undeclared identifier 'd'
scanf(“%d”,&newnode->x);
^
4 errors generated.
最佳答案
我相信,您对”
(unicode quote, U+201C)的预期"
(ascii quote, U+0022)有疑问。它们不是真的一样。
你可以详细阅读差异here .
关于c - 当我在 Mac OS X 上编译它时,它正在考虑引号 ("%d") 作为未定义的 ascii 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45540232/