cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
GOTO labels
GOTO labels
Feb 9, 2010 at 11:51pm UTC
beginner at programming
(111)
I was told along time ago that goto labels in c++ are evil and that I shouldn't use them...
I want to know why because they seem useful (in my opinion) especially in console programming...
The reason why they seem useful (to me) is because I started out scripting, programming or whatever you want to call it is BATCH.
Thoughts please?
Feb 10, 2010 at 12:02am UTC
PanGalactic
(1658)
If you want to get along with other C++ programmers, you will forget everything you ever knew about goto. The reason they were required for batch programming is that batch had no functions/procedures.
Feb 10, 2010 at 1:00am UTC
beginner at programming
(111)
If you want to get along with other C++ programmers,
you will forget everything you ever knew about goto.
Yes, But why?
Feb 10, 2010 at 1:38am UTC
PanGalactic
(1658)
You know, this exact question was asked and answered yesterday.
http://www.cplusplus.com/forum/general/19320/
Topic archived. No new replies allowed.