![]() |
sponsored links |
|
|
sponsored links
|
|
|
2
16th April 15:15
External User
Posts: 1
|
My solution to this problem is to use an external editor, such as vi.
(It's easy to configure it to use an external editor.) I think the estudio editor doesn't do line #s, but I'll leave it for an estudio expert to give a definitive answer. (Is this a homework assignment?) The first thing to do is to familiarize yourself with the loop format: from init_statements until exit_condition loop body end Then figure out from your code example what the exit condition is: i > 1000 or value >= 100000 -- right? Make sure you perform the necessary initialization in the from section (i.e., in your code, what must hold at the beginning of the first iteration of the loop?). Then figure out what the body should be. You may find that the result is easier to understand than your code example because the exit condition is tested in just one place. -- Jim Cochrane; jtc@dimensional.com [When responding by email, include the term non-spam in the subject line to get through my spam filter.] |
|
|
7
22nd April 02:54
External User
Posts: 1
|
John - Andreas gave you a good answer, but if you're wanting to learn more
about it, you might try one of the online eiffel tutorials. A google search should locate some sites. I've got a couple bookmarked - let me know if you want the URLs. Also, if you really get into it, check out Meyer's OOSC. -- Jim Cochrane; jtc@dimensional.com [When responding by email, include the term non-spam in the subject line to get through my spam filter.] |
|