Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #76523

Re: Program to print the longest line

From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: Program to print the longest line
Date 2015-11-19 10:12 -0500
Organization A noiseless patient Spider
Message-ID <n2koob$4am$1@dont-email.me> (permalink)
References (4 earlier) <24ee752f-6d21-4c6e-bb20-69b39dbb3d1c@googlegroups.com> <564CCF3A.9020900@verizon.net> <93030860-a9a2-4160-936f-f3623c8c5dd2@googlegroups.com> <n2kc8e$l9o$1@dont-email.me> <e2357ad4-ebd1-4e08-9e29-61096cd619c8@googlegroups.com>

Show all headers | View raw


On 11/19/2015 08:07 AM, Alla _ wrote:
> On Thursday, November 19, 2015 at 3:39:15 PM UTC+4, James Kuyper wrote:
>> On 11/19/2015 12:50 AM, Alla _ wrote:
>> ...
>>> Thank you ) I agree 100%, and that is exactly what I do. In this case this
>>> tiny typo occurred when I typed in a comment within this program, and
>>> I don't have this comment in my original Xcode file, and, even if I had it,
>>> the compiler would not utter a word about it, because it is within a 
>>> comment ) Anyway, I guess it's too much attention to this typo ) 
>>
>> The comment started out as an actual line of code, then became a comment
>> because you thought the parameter names needed correcting. 
> 
> Sorry, I miss your point here. Or is it a clairvoyance from your side? )
> If so, it's wrong )
> I have typed the program from the book into my prog1-5-4.c file, in
> which I initially changed the prototype, not even typing in the one from
> the book. And, as I said elsewhere, this comments exists only in this 
> thread, and it is not part of my file where I have my version of prototype.
> I have added the line to show you that I have changed it and explain my 
> reason. 

OK - sorry, I made some assumptions that turned out to be incorrect. Let
me restated those assumptions as the first part of a recommendation:
when working with code provided from some external source, before
modifying it in any way, you should first confirm that you typed it in
correctly by attempting to compile and run it.  If the compilation
produces no error messages and the program produces the expected results
when given the appropriate inputs, then and only then should you start
modifying it in any way other than correcting typos.
-- 
James Kuyper

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-18 08:10 -0800
  Re: Program to print the longest line Keith Thompson <kst-u@mib.org> - 2015-11-18 08:49 -0800
    Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-18 09:03 -0800
    Re: Program to print the longest line Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-18 09:04 -0800
      Re: Program to print the longest line Keith Thompson <kst-u@mib.org> - 2015-11-18 09:24 -0800
  Re: Program to print the longest line Richard Heathfield <rjh@cpax.org.uk> - 2015-11-18 17:42 +0000
    Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-18 10:49 -0800
      Re: Program to print the longest line James Kuyper <jameskuyper@verizon.net> - 2015-11-18 13:55 -0500
        Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-18 11:01 -0800
          Re: Program to print the longest line James Kuyper <jameskuyper@verizon.net> - 2015-11-18 14:19 -0500
            Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-18 21:50 -0800
              Re: Program to print the longest line James Kuyper <jameskuyper@verizon.net> - 2015-11-19 06:39 -0500
                Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-19 05:07 -0800
                Re: Program to print the longest line James Kuyper <jameskuyper@verizon.net> - 2015-11-19 10:12 -0500
                Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-19 07:49 -0800
      Re: Program to print the longest line Richard Heathfield <rjh@cpax.org.uk> - 2015-11-18 19:08 +0000
    Re: Program to print the longest line Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-11-18 14:54 -0500
      Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-18 23:36 -0800
        Re: Program to print the longest line Keith Thompson <kst-u@mib.org> - 2015-11-19 21:15 -0800
          Re: Program to print the longest line Geoff <geoff@invalid.invalid> - 2015-11-19 21:29 -0800
          Re: Program to print the longest line David Brown <david.brown@hesbynett.no> - 2015-11-20 11:00 +0100
            Re: Program to print the longest line glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-11-20 15:13 +0000
            Re: Program to print the longest line supercat@casperkitty.com - 2015-11-20 11:29 -0800
            Re: Program to print the longest line Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-20 12:51 -0800
              Re: Program to print the longest line Philip Lantz <prl@canterey.us> - 2015-11-24 01:59 -0800
                Re: Program to print the longest line Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-27 13:34 -0800
  Re: Program to print the longest line John Gordon <gordon@panix.com> - 2015-11-18 18:10 +0000
    Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-18 10:53 -0800
      Re: Program to print the longest line Barry Schwarz <schwarzb@dqel.com> - 2015-11-18 13:55 -0800
        Re: Program to print the longest line Alla _ <modelling.data@gmail.com> - 2015-11-18 23:32 -0800
  Re: Program to print the longest line Barry Schwarz <schwarzb@dqel.com> - 2015-11-18 11:58 -0800

csiph-web