X code给出3程序处理流浪'\\ 342'语法错误 [英] Xcode gives 3 syntax errors dealing with Stray '\342' in program

查看:117
本文介绍了X code给出3程序处理流浪'\\ 342'语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作与第X code在Objective-C一个简单的项目,我得到一些流浪/对以下行code的错误:

I am working on a simple project in Objective-C in Xcode and I'm getting some stray/ errors about the following line of code:

if(celsius < −273.15) {
        NSLog(@"It is impossible to convert temperatures less than −273.15 degrees Celsius, because this is absolute zero, the coldest possible temperature.");
    }

它实际上是只有第一线,但我想给一些背景。

It's actually only about the first line, but I wanted to give some context.

有什么建议?

我在这里看着它在左右,但其他人的错误一直没有这样简单code像我这样的,虽然看起来他们有某些标点错误编码的一个共同的问题,也许?

I've looked it up here on SO, but everyone else's error hasn't had such simple code like mine, although it appears they have a common problem of having the wrong encoding for certain punctuation, perhaps?

这一定是只是我的if语句语法的一些这个..

It's got to be just some syntax this on my if statement..

更新:

看起来好像它也显示2其他杂散错误:

It looks as though it also displays 2 other stray errors:

流浪'\\ 210'
流浪'\\ 222

Stray '\210' Stray '\222'

推荐答案

! - = -

− != -

您减号,是不是减号。

这篇关于X code给出3程序处理流浪'\\ 342'语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆