Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all, whilst making a small change to an old C++ program ( not mine ) I came across this line

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


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

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


anyone know what the zz: means ?
Posted
Updated 17-Jan-18 1:30am

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.
 
Share this answer
 
Comments
pkfox 17-Jan-18 9:26am    
Thanks Paul, the whole program will be rewritten very soon ( it was written in 2001 ) in C# , the change I've got to make is a path to the output file so should be ok , I agree ( goto ) I've never used a goto in my life
OriginalGriff 17-Jan-18 10:20am    
:grin:
pkfox 17-Jan-18 17:14pm    
I know I know :-)
It is a label used as goto statement - cppreference.com[^] destination.
 
Share this answer
 
Comments
pkfox 17-Jan-18 9:26am    
Thanks Jochen

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900