这是什么意思 [英] What does this mean

查看:80
本文介绍了这是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,虽然对旧的C ++程序(不是我的)进行了一些小改动,但我遇到了这条线



Hi all, whilst making a small change to an old C++ program ( not mine ) I came across this line

zz: for (iline = 236;iline < 242;iline++)





任何人都知道zz:意思是什么?



我尝试了什么:



大家好,虽然对旧的C ++程序(不是我的)进行了一些小改动,但我来了跨越这一行





anyone know what the zz: means ?

What I have tried:

Hi all, whilst making a small change to an old C++ program ( not mine ) I came across this line

zz: for (iline = 236;iline < 242;iline++)





任何人都知道zz:是什么意思?



anyone know what the zz: means ?

推荐答案

这是标签。这意味着它可以是 goto 指令的目标,这意味着该程序几乎肯定写得不好 - 我不需要 goto 二十多年了!



我在编辑程序时建议极为谨慎:存在 goto 使代码流复杂化并暗示它不会是唯一的代码流。在您开始尝试修改代码之前,我希望重构代码以删除所有 goto 指令。
It's a label. That means it can be the target of a goto instruction, which means the program is almost certainly badly written - I haven't needed a goto in over twenty years!

I'd suggest extreme caution when editing the program: the existence of a goto complicates the code flow and implies it won't be the only one. I'd look to refactoring the code to remove all goto instructions if possible before you even start trying to modify the code.


It是用作 goto statement - cppreference.com 的标签[ ^ ]目的地。
It is a label used as goto statement - cppreference.com[^] destination.


这篇关于这是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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