出于某种原因,我的“if”表达式在 Xcode 中不起作用。它给出了 if 表达式的“解析问题”。有什么建议么?错误代码为:“预期的不合格 ID”。我正在使用 xcode。请看下面:
if (surfaceArea > 750)
{
totalCost t=50;
}
提前致谢,
最佳答案
if (surfaceArea > 750) //adding 50 dollars to cost if product is
//over 750 sq. inches
{
totalCost t+=50;
}
创建注释行//. 希望你能理解。
要编写多行注释,请使用/* .... */
关于C++ if 语句/xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46689501/