“如果”有问题声明 [英] Something wrong with the "if" statement

查看:82
本文介绍了“如果”有问题声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,谢谢你让我遇到麻烦这次磨合。

我正在为猪拉丁语转换制作一个剧本,而且if是有问题的。第51行中的语句。以下是到目前为止的代码:

展开 | 选择 | Wrap | 行号

解决方案


你好,谢谢你带着麻烦来解决这个问题。

我正在为猪拉丁语转换制作一个剧本,而且如果"第51行中的语句。以下是到目前为止的代码:

展开 | 选择 | Wrap | 行号



嗨彼得,


与if有什么关系?它是不是在编译,还是行为不端......

如果它不应该或者它是否会进入其中而不是它应该不会发生在其他地方。


您至少缺少三组或标志.....尝试

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号



嗯,这实际上非常有效。我不太确定你做了什么,但它是什么,它起作用了。但是,现在第47行的if语句出现了新的错误。调试器说:

在''之前预期的primary-expression'''令牌'

我无法弄清楚如何解决这个问题。

至于之前和现在(就此而言),这是一个编译器错误。

我不是彼得......它的帕克。



好​​的,有更新。

我有编译错误。

这是我正在使用的代码:

展开 | 选择 | Wrap | 行号

Hello, and thank you for hwlping me with this run-in with trouble.
I am making a script for pig latin transulation, and there is something wrong with the "if" statement in line 51. Here is the code so far:

Expand|Select|Wrap|Line Numbers

解决方案

Hello, and thank you for hwlping me with this run-in with trouble.
I am making a script for pig latin transulation, and there is something wrong with the "if" statement in line 51. Here is the code so far:

Expand|Select|Wrap|Line Numbers


Hi Peter,

What is th eproblem with the if. Is it not compiling, or is it misbehaving....
Is it going to else when it shouldn''t or is it going into the if when it shouldn''t.

You are missing at least three sets of or signs.....try

Expand|Select|Wrap|Line Numbers


Well, that actually worked fantastically. I''m not quite sure what you did, but what ever it was, it worked. But, now the if statement on line 47 is having a new error. The debugger said:
"expected primary-expression before '')'' token"
I cannot figure out how to solve this.
As for before, and now (for that matter), it is/was a compiler error.
And I''m not Peter...Its Parker.

Okay, there is an update.
I''m having a compiler error.
Here is the code I am now working with:

Expand|Select|Wrap|Line Numbers


这篇关于“如果”有问题声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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