Click here to Skip to main content
15,890,123 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
maze316-Sep-19 0:43
professionalmaze316-Sep-19 0:43 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
MSBassSinger16-Sep-19 2:44
professionalMSBassSinger16-Sep-19 2:44 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 3:28
mvahoney the codewitch16-Sep-19 3:28 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
obermd16-Sep-19 4:17
obermd16-Sep-19 4:17 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 4:51
mvahoney the codewitch16-Sep-19 4:51 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
W Balboos, GHB16-Sep-19 4:31
W Balboos, GHB16-Sep-19 4:31 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 5:20
mvahoney the codewitch16-Sep-19 5:20 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
SeattleC++16-Sep-19 4:57
SeattleC++16-Sep-19 4:57 
Because neither one of these loops does anything except waste time.

Was there perhaps a reason you wanted to find out if valueToFind was in arr? If there was, the first loop is almost right, i points to the matching entry on loop exit. Only problem is, i goes out of scope on loop exit. Sigh. The second loop always has i== arr.Length on loop exit, and i still goes out of scope
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 5:18
mvahoney the codewitch16-Sep-19 5:18 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
AnotherKen16-Sep-19 6:31
professionalAnotherKen16-Sep-19 6:31 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 6:38
mvahoney the codewitch16-Sep-19 6:38 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
AnotherKen16-Sep-19 8:00
professionalAnotherKen16-Sep-19 8:00 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
honey the codewitch16-Sep-19 8:09
mvahoney the codewitch16-Sep-19 8:09 
GeneralRe: for those of you purists that don't like break, continue and goto Pin
zezba900016-Sep-19 10:21
zezba900016-Sep-19 10:21 
GeneralI don't like java. Pin
honey the codewitch14-Sep-19 3:35
mvahoney the codewitch14-Sep-19 3:35 
GeneralRe: I don't like java. Pin
Nand3214-Sep-19 4:37
Nand3214-Sep-19 4:37 
GeneralRe: I don't like java. Pin
honey the codewitch14-Sep-19 4:54
mvahoney the codewitch14-Sep-19 4:54 
GeneralRe: I don't like java. Pin
Sander Rossel14-Sep-19 5:00
professionalSander Rossel14-Sep-19 5:00 
GeneralRe: I don't like java. Pin
honey the codewitch14-Sep-19 5:06
mvahoney the codewitch14-Sep-19 5:06 
GeneralRe: I don't like java. Pin
Jörgen Andersson14-Sep-19 8:55
professionalJörgen Andersson14-Sep-19 8:55 
GeneralRe: I don't like java. Pin
honey the codewitch14-Sep-19 12:50
mvahoney the codewitch14-Sep-19 12:50 
GeneralRe: I don't like java. Pin
Amarnath S14-Sep-19 5:10
professionalAmarnath S14-Sep-19 5:10 
GeneralRe: I don't like java. Pin
honey the codewitch14-Sep-19 5:15
mvahoney the codewitch14-Sep-19 5:15 
GeneralRe: I don't like java. Pin
Rick York14-Sep-19 6:02
mveRick York14-Sep-19 6:02 
GeneralRe: I don't like java. Pin
honey the codewitch14-Sep-19 6:03
mvahoney the codewitch14-Sep-19 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.