... <snip> Hi Victor, yes, that is shorter, no question. However, depending on the length of the loop (300 lines?) it can become a nightmare to identify the ...
Cheers. How does it determine if a restart is needed? Cheers, Chris Norman <!-- chris.norman4@... --> ... From: Tamás To: c-prog@yahoogroups.com ...
Chris Norman
chris.norman4@...
Nov 1, 2005 8:55 am
49103
There is a goto statement, I'm going to look it up now. Cheers, Chris Norman <!-- chris.norman4@... --> ... From: "Nico Heinze" <grollnar@...> To:...
Chris Norman
chris.norman4@...
Nov 1, 2005 8:59 am
49104
Cheers, I was just going to look up the "goto" statement. Thanks, Chris Norman <!-- chris.norman4@... --> ... From: shahin namini To:...
Chris Norman
chris.norman4@...
Nov 1, 2005 8:59 am
49105
My Computing teacher said "don't use goto". Why? What is the problem with it? Chris Norman <!-- chris.norman4@... --> ... From: Tamás To:...
Chris Norman
chris.norman4@...
Nov 1, 2005 9:04 am
49106
... Hi Chris, there are mainly three reasons. 1) the theoretical reason: the "goto" statement is the perfect way to break every Structured Design. Structured...
Cheers for that. I will take your advice. Take care, Chris Norman <!-- chris.norman4@... --> ... From: "Nico Heinze" <grollnar@...> To:...
Chris Norman
chris.norman4@...
Nov 1, 2005 10:54 am
49108
... problem with it? ... The problem with using goto's is that they can quickly break down the whole concept of structure and easy to follow logic, in a...
Your idea Ray, of going from right to left and handling the subtractions as you meet them, working across the numbers representing roman numerals, works out...
for All i need some help... i will to build a c++ Code to Compress a txt file using huffman code.. but when i read the charactres from file there is jump above...
... In the version of Fortran I started with (I think Fortran 68, I know I'm showing my age), you had to use goto. Constructs like if only allowed one...
... I think Chris was asking a more specific question, under what condition does the OP think he needs to do a restart? I can think of how to do it, I just...
... How are you currently reading in the characters? Show us your code. Ray __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 ...
... Yes. It is quite amazing how my skills in structuring my programs became better after ridding myself of the goto, for the most part. I rarely use it now,...
... Did you mean ++i ? One of my book tells: ++i will increment i before process it while i++ will process i before increment it. Correct me if I'm wrong,...
... before ... Hi Anggie, In the case mentioned (which is rather unique), the variable 'i' needs to be assigned the value of -1. When it loops around next, it ...
... Are the following statements equal then? - for(int i = 0; i < 3; i++) - for(int i = -1; i < 3; ++i) Thanks Dave. -- Anggie Bratadinata ... Jl. Raya Langsep...
Hi all, I need some help with some database setup. I want to read into my c program one data file that has the following format. 5 3 X1 X2 X3 0.1 0.5 0.4 0.23...
From: Anggie Bratadinata ... He did, but only because the original code used the prefix version. ... Not wrong per se, but the code concerned didn't rely on...
... Hi Paul, So the following statements are equal - for(int i = 0; i < 3; i++) - for(int i = -1; i < 3; ++i) are they? -- Anggie Bratadinata ... Jl. Raya...
... THIS, IMO is one of the biggest programming problems extant. copy/paste the initializer, then forget that it's there and 2 years later someone modifies the...
... it _can_ (and in the past...before structured languages) lead to "spaghetti code". This is a phrase which refers to when "flow charts" or paths of control...
From: Andres Gonzalez <Andres.Gonzalez@...> ... You will have to dynamically allocate memory [ie. using malloc or calloc] for a matrix, then you can just use...
... Nico overstated the hazards. When Dijkstra wrote his famous "Goto Considered Harmful" paper (I read it when it was published) the block structured...