Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #76641 > unrolled thread
| Started by | Alla _ <modelling.data@gmail.com> |
|---|---|
| First post | 2015-11-20 08:06 -0800 |
| Last post | 2015-11-20 20:43 -0800 |
| Articles | 8 on this page of 68 — 18 participants |
Back to article view | Back to comp.lang.c
While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 08:06 -0800
Re: While or if: function to get next operator or operand Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-20 08:17 -0800
Re: While or if: function to get next operator or operand Richard Heathfield <rjh@cpax.org.uk> - 2015-11-20 16:44 +0000
Re: While or if: function to get next operator or operand Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-11-20 11:23 -0500
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 08:39 -0800
Re: While or if: function to get next operator or operand Richard Heathfield <rjh@cpax.org.uk> - 2015-11-20 16:47 +0000
Re: While or if: function to get next operator or operand Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-11-20 11:54 -0500
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 09:13 -0800
Re: While or if: function to get next operator or operand David Thompson <dave.thompson2@verizon.net> - 2015-12-06 08:04 -0500
Re: While or if: function to get next operator or operand James Kuyper <jameskuyper@verizon.net> - 2015-11-20 12:02 -0500
Re: While or if: function to get next operator or operand Richard Heathfield <rjh@cpax.org.uk> - 2015-11-20 16:41 +0000
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 09:11 -0800
Re: While or if: function to get next operator or operand Richard Heathfield <rjh@cpax.org.uk> - 2015-11-20 17:39 +0000
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 10:42 -0800
Re: While or if: function to get next operator or operand Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-11-21 14:58 -0500
Re: While or if: function to get next operator or operand Richard Heathfield <rjh@cpax.org.uk> - 2015-11-23 12:21 +0000
Re: While or if: function to get next operator or operand Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-11-21 21:29 +0000
Re: While or if: function to get next operator or operand BartC <bc@freeuk.com> - 2015-11-21 22:31 +0000
Re: While or if: function to get next operator or operand BartC <bc@freeuk.com> - 2015-11-22 10:57 +0000
Re: While or if: function to get next operator or operand Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-11-22 13:45 +0000
Re: While or if: function to get next operator or operand Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-11-22 01:31 -0500
Re: While or if: function to get next operator or operand Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-23 04:33 -0800
Re: While or if: function to get next operator or operand Philip Lantz <prl@canterey.us> - 2015-11-23 23:44 -0800
Re: While or if: function to get next operator or operand Rosario19 <Ros@invalid.invalid> - 2015-11-22 09:39 +0100
Re: While or if: function to get next operator or operand Rosario19 <Ros@invalid.invalid> - 2015-11-22 09:49 +0100
Re: While or if: function to get next operator or operand asetofsymbols@gmail.com - 2015-11-22 02:27 -0800
Re: While or if: function to get next operator or operand asetofsymbols@gmail.com - 2015-11-22 02:32 -0800
Re: While or if: function to get next operator or operand Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-11-22 10:02 -0500
Re: While or if: function to get next operator or operand Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-11-23 17:23 +0000
Re: While or if: function to get next operator or operand Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-11-23 12:31 -0500
Re: While or if: function to get next operator or operand Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-11-23 13:02 -0500
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-22 07:06 -0800
Re: While or if: function to get next operator or operand Barry Schwarz <schwarzb@dqel.com> - 2015-11-22 11:43 -0800
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-24 02:03 -0800
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-24 02:11 -0800
Re: While or if: function to get next operator or operand James Kuyper <jameskuyper@verizon.net> - 2015-11-24 07:09 -0500
Re: While or if: function to get next operator or operand Richard Heathfield <rjh@cpax.org.uk> - 2015-11-23 12:26 +0000
Re: While or if: function to get next operator or operand raltbos@xs4all.nl (Richard Bos) - 2015-11-23 13:26 +0000
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-22 07:17 -0800
Re: While or if: function to get next operator or operand James Kuyper <jameskuyper@verizon.net> - 2015-11-20 12:15 -0500
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 10:44 -0800
Re: While or if: function to get next operator or operand Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-20 12:31 -0800
Re: While or if: function to get next operator or operand Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-11-20 15:38 -0500
Re: While or if: function to get next operator or operand James Kuyper <jameskuyper@verizon.net> - 2015-11-20 16:14 -0500
Re: While or if: function to get next operator or operand Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-11-20 16:55 -0500
Re: While or if: function to get next operator or operand Geoff <geoff@invalid.invalid> - 2015-11-20 15:04 -0800
Re: While or if: function to get next operator or operand Barry Schwarz <schwarzb@dqel.com> - 2015-11-20 20:59 -0800
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 23:50 -0800
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-21 00:18 -0800
Re: While or if: function to get next operator or operand Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-22 14:10 -0800
Re: While or if: function to get next operator or operand Philip Lantz <prl@canterey.us> - 2015-11-22 19:00 -0800
Re: While or if: function to get next operator or operand James Kuyper <jameskuyper@verizon.net> - 2015-11-23 06:57 -0500
Re: While or if: function to get next operator or operand Philip Lantz <prl@canterey.us> - 2015-11-23 23:49 -0800
Re: While or if: function to get next operator or operand James Kuyper <jameskuyper@verizon.net> - 2015-11-24 07:13 -0500
Re: While or if: function to get next operator or operand Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-23 07:55 -0800
Re: While or if: function to get next operator or operand Philip Lantz <prl@canterey.us> - 2015-11-23 23:36 -0800
Re: While or if: function to get next operator or operand Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-27 13:32 -0800
Re: While or if: function to get next operator or operand Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-11-20 16:13 -0500
Re: While or if: function to get next operator or operand Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-22 13:54 -0800
Re: While or if: function to get next operator or operand Geoff <geoff@invalid.invalid> - 2015-11-20 12:19 -0800
Re: While or if: function to get next operator or operand Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-20 15:32 -0800
Re: While or if: function to get next operator or operand Chad <cdalten@gmail.com> - 2015-11-20 18:38 -0800
Re: While or if: function to get next operator or operand Keith Thompson <kst-u@mib.org> - 2015-11-20 19:45 -0800
Re: While or if: function to get next operator or operand Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-20 20:12 -0800
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 20:45 -0800
Re: While or if: function to get next operator or operand Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-20 21:04 -0800
Re: While or if: function to get next operator or operand Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-22 13:57 -0800
Re: While or if: function to get next operator or operand Alla _ <modelling.data@gmail.com> - 2015-11-20 20:43 -0800
Page 4 of 4 — ← Prev page 1 2 3 [4]
| From | Tim Rentsch <txr@alumni.caltech.edu> |
|---|---|
| Date | 2015-11-20 15:32 -0800 |
| Message-ID | <kfnh9kg8cxb.fsf@x-alumni2.alumni.caltech.edu> |
| In reply to | #76641 |
Alla _ <modelling.data@gmail.com> writes: > Please, take a look at the function below. It is from K&R. > > I dare to wonder why they use a while loop if the condition > considers only one item in the list. Why not to use if statement? > What is the purpose and the logic behind the while loop in this > case? [...] I have a process suggestion. You really need to try to develop the skills necessary so you can answer these kinds of questions yourself. That means working harder, by yourself, on problems you run into before bringing them to the group. A good technique to know is to simplify what the code is doing so you can ask as "small" a question as possible. More often than not in the process of doing that I expect you will discover that simplifying the question will let you see the answer. Programming is a deep skill. The kinds of questions you are asking indicate to me that the learning you are doing is shallow, or at least shallow in some important skill areas. I know this advice may be hard to hear and even harder to follow, but I think you will find that in the long run it offers a bigger payoff than how you have been learning up to now.
[toc] | [prev] | [next] | [standalone]
| From | Chad <cdalten@gmail.com> |
|---|---|
| Date | 2015-11-20 18:38 -0800 |
| Message-ID | <94fe3b35-3d4f-4841-848e-f50023c256a3@googlegroups.com> |
| In reply to | #76692 |
On Friday, November 20, 2015 at 3:32:42 PM UTC-8, Tim Rentsch wrote: > Alla _ <modelling.data@gmail.com> writes: > > > Please, take a look at the function below. It is from K&R. > > > > I dare to wonder why they use a while loop if the condition > > considers only one item in the list. Why not to use if statement? > > What is the purpose and the logic behind the while loop in this > > case? [...] > > I have a process suggestion. You really need to try to develop > the skills necessary so you can answer these kinds of questions > yourself. That means working harder, by yourself, on problems > you run into before bringing them to the group. A good technique > to know is to simplify what the code is doing so you can ask as > "small" a question as possible. More often than not in the > process of doing that I expect you will discover that simplifying > the question will let you see the answer. Programming is a deep > skill. The kinds of questions you are asking indicate to me that > the learning you are doing is shallow, or at least shallow in > some important skill areas. I know this advice may be hard to > hear and even harder to follow, but I think you will find that in > the long run it offers a bigger payoff than how you have been > learning up to now. I would like to add that programming is supposed to teach you how to think. By the way, I don't think K&R is meant for rookie programmers.
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Date | 2015-11-20 19:45 -0800 |
| Message-ID | <ln7flcaubz.fsf@kst-u.example.com> |
| In reply to | #76709 |
Chad <cdalten@gmail.com> writes:
[...]
> I would like to add that programming is supposed to teach you how to
> think. By the way, I don't think K&R is meant for rookie programmers.
Quoting the preface to the first edition (which is reproduced in the
second edition):
The book is not an introductory programming manual; it assumes
some familiarity with basic programming concepts like variables,
assignment statements, loops, and functions. Nevertheless,
a novice programmer should be able to read along and pick up
the language, although access to a more knowledgeable colleague
will help.
It is quite dense compared to most other C tutorials.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
[toc] | [prev] | [next] | [standalone]
| From | Malcolm McLean <malcolm.mclean5@btinternet.com> |
|---|---|
| Date | 2015-11-20 20:12 -0800 |
| Message-ID | <380a327a-b58a-4641-8c8b-987698be00d4@googlegroups.com> |
| In reply to | #76716 |
On Saturday, November 21, 2015 at 3:46:00 AM UTC, Keith Thompson wrote: > Chad <cdalten@gmail.com> writes: > [...] > > I would like to add that programming is supposed to teach you how to > > think. By the way, I don't think K&R is meant for rookie programmers. > > Quoting the preface to the first edition (which is reproduced in the > second edition): > > The book is not an introductory programming manual; it assumes > some familiarity with basic programming concepts like variables, > assignment statements, loops, and functions. Nevertheless, > a novice programmer should be able to read along and pick up > the language, although access to a more knowledgeable colleague > will help. > > It is quite dense compared to most other C tutorials. > "What's that funny out of place multiplication sign?" "It's the indirection operator." For some people that will be totally illuminating, for others leave them none the wiser.
[toc] | [prev] | [next] | [standalone]
| From | Alla _ <modelling.data@gmail.com> |
|---|---|
| Date | 2015-11-20 20:45 -0800 |
| Message-ID | <d3112a5f-4be6-45b4-bed4-47c1000606ff@googlegroups.com> |
| In reply to | #76709 |
<snip> > I would like to add that programming is supposed to teach you how to think. Exactly. This is one of the most important goals I pursue in learning the subject - learn to think logically, algorithmically, analytically, from a technical point of view.
[toc] | [prev] | [next] | [standalone]
| From | Malcolm McLean <malcolm.mclean5@btinternet.com> |
|---|---|
| Date | 2015-11-20 21:04 -0800 |
| Message-ID | <db4be4c7-d3ef-4077-a623-80c0cb216351@googlegroups.com> |
| In reply to | #76723 |
On Saturday, November 21, 2015 at 4:45:57 AM UTC, Alla _ wrote: > <snip> > > I would like to add that programming is supposed to teach you how > > to think. > > Exactly. This is one of the most important goals I pursue in learning the > subject - learn to think logically, algorithmically, analytically, from a > technical point of view. > The nice thing about programming is that you usually know whether the answer is right.
[toc] | [prev] | [next] | [standalone]
| From | Tim Rentsch <txr@alumni.caltech.edu> |
|---|---|
| Date | 2015-11-22 13:57 -0800 |
| Message-ID | <kfn610t7l4z.fsf@x-alumni2.alumni.caltech.edu> |
| In reply to | #76709 |
Chad <cdalten@gmail.com> writes: > On Friday, November 20, 2015 at 3:32:42 PM UTC-8, Tim Rentsch wrote: >> Alla _ <modelling.data@gmail.com> writes: >> >>> Please, take a look at the function below. It is from K&R. >>> >>> I dare to wonder why they use a while loop if the condition >>> considers only one item in the list. Why not to use if statement? >>> What is the purpose and the logic behind the while loop in this >>> case? [...] >> >> I have a process suggestion. You really need to try to develop >> the skills necessary so you can answer these kinds of questions >> yourself. That means working harder, by yourself, on problems >> you run into before bringing them to the group. A good technique >> to know is to simplify what the code is doing so you can ask as >> "small" a question as possible. More often than not in the >> process of doing that I expect you will discover that simplifying >> the question will let you see the answer. Programming is a deep >> skill. The kinds of questions you are asking indicate to me that >> the learning you are doing is shallow, or at least shallow in >> some important skill areas. I know this advice may be hard to >> hear and even harder to follow, but I think you will find that in >> the long run it offers a bigger payoff than how you have been >> learning up to now. > > I would like to add that programming is supposed to teach you how > to think. [...] I won't argue with that, but the skills I'm talking about are easier to get than learning how to think. :)
[toc] | [prev] | [next] | [standalone]
| From | Alla _ <modelling.data@gmail.com> |
|---|---|
| Date | 2015-11-20 20:43 -0800 |
| Message-ID | <9c0be5b9-9124-4e1b-ab73-a7ecc437b880@googlegroups.com> |
| In reply to | #76692 |
On Saturday, November 21, 2015 at 3:32:42 AM UTC+4, Tim Rentsch wrote: > Alla _ <modelling.data@gmail.com> writes: > > > Please, take a look at the function below. It is from K&R. > > > > I dare to wonder why they use a while loop if the condition > > considers only one item in the list. Why not to use if statement? > > What is the purpose and the logic behind the while loop in this > > case? [...] > > I have a process suggestion. You really need to try to develop > the skills necessary so you can answer these kinds of questions > yourself. That means working harder, by yourself, on problems > you run into before bringing them to the group. A good technique > to know is to simplify what the code is doing so you can ask as > "small" a question as possible. More often than not in the > process of doing that I expect you will discover that simplifying > the question will let you see the answer. Programming is a deep > skill. The kinds of questions you are asking indicate to me that > the learning you are doing is shallow, or at least shallow in > some important skill areas. I know this advice may be hard to > hear and even harder to follow, but I think you will find that in > the long run it offers a bigger payoff than how you have been > learning up to now. Thank you. I agree with you. And, no, it's not hard to hear, because these are all just words. I know how shallow my knowledge is at this moment, that is why I heed your opinion and all advises, and that is why I have picked up K&R. But as I have already mentioned, I have been trying to follow the CS50 course. It is a brilliantly organized course, and, as I also mentioned, it is an introductory course, giving a broad view on the subject, and followed by other courses, such as CS51, etc (unfortunately but justly so, all unavailable for people outside of campus); therefore, at this stage I have been trying to finish it (although given the timing and my desire to get a deeper knowledge, I am not sure I am making it in time).
[toc] | [prev] | [standalone]
Page 4 of 4 — ← Prev page 1 2 3 [4]
Back to top | Article view | comp.lang.c
csiph-web