Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #72763 > unrolled thread
| Started by | Gerry Wolff <gerrywolff65@gmail.com> |
|---|---|
| First post | 2020-04-03 09:56 -0700 |
| Last post | 2020-04-07 10:39 +0000 |
| Articles | 10 on this page of 70 — 18 participants |
Back to article view | Back to comp.lang.c++
Help needed Gerry Wolff <gerrywolff65@gmail.com> - 2020-04-03 09:56 -0700
Re: Help needed Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2020-04-03 18:18 +0100
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-03 12:57 -0500
Re: Help needed Melzzzzz <Melzzzzz@zzzzz.com> - 2020-04-03 18:17 +0000
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-03 16:41 -0500
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-03 14:58 -0400
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-03 16:45 -0500
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-03 17:52 -0500
Re: Help needed Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-04-03 20:05 +0000
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-03 16:58 -0500
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-03 17:50 -0500
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-04 00:15 -0400
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-03 23:58 -0500
Re: Help needed Ian Collins <ian-news@hotmail.com> - 2020-04-04 18:06 +1300
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 00:35 -0500
Re: Help needed Ian Collins <ian-news@hotmail.com> - 2020-04-04 19:54 +1300
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 02:22 -0500
Re: Help needed Bo Persson <bo@bo-persson.se> - 2020-04-04 10:33 +0200
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 04:55 -0500
Re: Help needed David Brown <david.brown@hesbynett.no> - 2020-04-04 13:02 +0200
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 07:15 -0500
Re: Help needed David Brown <david.brown@hesbynett.no> - 2020-04-04 16:49 +0200
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-05 04:10 -0500
Re: Help needed Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2020-04-05 16:31 +0100
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-05 11:37 -0500
Re: Help needed Bonita Montero <Bonita.Montero@gmail.com> - 2020-04-04 14:19 +0200
Re: Help needed David Brown <david.brown@hesbynett.no> - 2020-04-04 16:57 +0200
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-04 10:51 -0400
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-04 10:44 -0400
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-05 04:06 -0500
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-05 11:04 -0400
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-05 11:31 -0500
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-05 16:59 -0400
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-05 21:38 -0500
Re: Help needed "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2020-04-04 13:51 +0200
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 08:33 -0500
Re: Help needed Ian Collins <ian-news@hotmail.com> - 2020-04-05 07:35 +1200
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-05 04:19 -0500
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-05 11:27 -0400
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-04 22:27 -0400
Re: Help needed Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2020-04-04 14:50 +0100
Re: Help needed James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-04-04 10:27 -0400
Re: Help needed Ian Collins <ian-news@hotmail.com> - 2020-04-05 07:37 +1200
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-05 03:45 -0500
Re: Help needed Paavo Helde <myfirstname@osa.pri.ee> - 2020-04-04 09:02 +0300
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 01:20 -0500
Re: Help needed Ian Collins <ian-news@hotmail.com> - 2020-04-04 19:43 +1300
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 02:10 -0500
Re: Help needed Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-04-04 01:58 -0700
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 05:04 -0500
Re: Help needed Paavo Helde <myfirstname@osa.pri.ee> - 2020-04-04 14:37 +0300
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-04 07:25 -0500
Re: Help needed Paavo Helde <eesnimi@osa.pri.ee> - 2020-04-04 17:39 +0300
Re: Help needed Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-05 04:02 -0500
Re: Help needed Bonita Montero <Bonita.Montero@gmail.com> - 2020-04-03 19:35 +0200
Re: Help needed Bonita Montero <Bonita.Montero@gmail.com> - 2020-04-03 20:01 +0200
Re: Help needed Bonita Montero <Bonita.Montero@gmail.com> - 2020-04-04 16:16 +0200
Re: Help needed Bonita Montero <Bonita.Montero@gmail.com> - 2020-04-04 18:58 +0200
Re: Help needed Christian Gollwitzer <auriocus@gmx.de> - 2020-04-03 22:01 +0200
Re: Help needed Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2020-04-03 21:05 +0100
Re: Help needed Bo Persson <bo@bo-persson.se> - 2020-04-04 02:10 +0200
Re: Help needed Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-04-04 08:19 +0000
Re: Help needed Gerry Wolff <gerrywolff65@gmail.com> - 2020-04-05 02:56 -0700
Re: Help needed Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-04-04 01:14 +0100
Re: Help needed Gerry Wolff <gerrywolff65@gmail.com> - 2020-04-05 02:49 -0700
Re: Help needed Sam <sam@email-scan.com> - 2020-04-04 16:30 -0400
Re: Help needed Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2020-04-05 05:58 +0100
Re: Help needed Gerry Wolff <gerrywolff65@gmail.com> - 2020-04-05 03:21 -0700
Re: Help needed Juha Nieminen <nospam@thanks.invalid> - 2020-04-07 06:33 +0000
Re: Help needed Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-04-07 10:39 +0000
Page 4 of 4 — ← Prev page 1 2 3 [4]
| From | Bo Persson <bo@bo-persson.se> |
|---|---|
| Date | 2020-04-04 02:10 +0200 |
| Message-ID | <heq1jtFqtpmU1@mid.individual.net> |
| In reply to | #72771 |
On 2020-04-03 at 22:05, Mr Flibble wrote:
> On 03/04/2020 21:01, Christian Gollwitzer wrote:
>> Am 03.04.20 um 19:35 schrieb Bonita Montero:
>>> I just tried to compile your SP62-program. There are a lot assignments
>>> of string-literals to non-const string-pointers. In C++ every string
>>> -literal has the type "const char *"; I don't know if this has ever
>>> been different in earlier versions of C++, but earlier versions of
>>> MSVC accepted the assignment of string-literals to char-pointers. So
>>> you have to make your c-strings const. And there are a lot of erors
>>> which advise you to use safe versions of C-runtime-functions which
>>> are not prone to buffer-overflows. You can disable this errors by
>>> defining _CRT_SECURE_NO_WARNINGS or you could use the safer versions
>>> the error-message shows you.
>>
>> I also tried to compile the SP71 program. There were only 7 real
>> errors. There is the idiotic for-scoping that was wrong in VC6. In VC
>> 6, if you write
>
> VC6 is NOT a C++ compiler, it is VC6 compiler.
>
True, in a way. Note that VC6 was published slightly before the C++98
standard was completed.
In 1997, when VC6 was implemented, the draft for the standard said that
the loop variable *should* be visible in the outer scope. Then that rule
was changed, and the standard was published.
Bo Persson
[toc] | [prev] | [next] | [standalone]
| From | Jorgen Grahn <grahn+nntp@snipabacken.se> |
|---|---|
| Date | 2020-04-04 08:19 +0000 |
| Message-ID | <slrnr8ggo4.1r7q.grahn+nntp@frailea.sa.invalid> |
| In reply to | #72770 |
On Fri, 2020-04-03, Christian Gollwitzer wrote: > Am 03.04.20 um 19:35 schrieb Bonita Montero: >> I just tried to compile your SP62-program. There are a lot assignments >> of string-literals to non-const string-pointers. In C++ every string >> -literal has the type "const char *"; I don't know if this has ever ... > > I also tried to compile the SP71 program. There were only 7 real errors. ... Useful advise from Bonita and Christian! (Unlike a lot of other stuff in this thread.) /Jorgen -- // Jorgen Grahn <grahn@ Oo o. . . \X/ snipabacken.se> O o .
[toc] | [prev] | [next] | [standalone]
| From | Gerry Wolff <gerrywolff65@gmail.com> |
|---|---|
| Date | 2020-04-05 02:56 -0700 |
| Message-ID | <45140099-8af5-48c1-85ab-c888825fd81e@googlegroups.com> |
| In reply to | #72770 |
On Friday, 3 April 2020 21:01:37 UTC+1, Christian Gollwitzer wrote:
> Am 03.04.20 um 19:35 schrieb Bonita Montero:
> > I just tried to compile your SP62-program. There are a lot assignments
> > of string-literals to non-const string-pointers. In C++ every string
> > -literal has the type "const char *"; I don't know if this has ever
> > been different in earlier versions of C++, but earlier versions of
> > MSVC accepted the assignment of string-literals to char-pointers. So
> > you have to make your c-strings const. And there are a lot of erors
> > which advise you to use safe versions of C-runtime-functions which
> > are not prone to buffer-overflows. You can disable this errors by
> > defining _CRT_SECURE_NO_WARNINGS or you could use the safer versions
> > the error-message shows you.
>
> I also tried to compile the SP71 program. There were only 7 real errors.
> There is the idiotic for-scoping that was wrong in VC6. In VC 6, if you
> write
>
> for (int i=0; i<n; i++) { }
>
> then the i variable belongs to the outer block, whereas in C++ since
> 1998 it belongs to the for block. So shift this to
>
> int i;
> for (i=0; i<n; i++) { }
>
> to get the same effect. Then there was an default-to-int static variable
> without a type; even the compiler knew how to fix it:
>
>
> SP71_lib.cpp:16155:9: error: C++ requires a type specifier for all
> declarations
> static column_counter = 0 ;
> ~~~~~~ ^
> 1 error generated.
>
> and a missing comma in a sequence of declarations; I wonder how that
> ever could compile.
>
> Now it compiles on clang, but with 283 warnings, of course. Here's the diff:
>
> Apfelkiste:Tests chris$ diff -r SP_new/ SP
> diff -r SP_new/SP71_head.h SP/SP71_head.h
> 660c660
> < {symbol *s ; int i; for (i = 0; i < sequence_depth; i++)
> ---
> > {symbol *s ; for (int i = 0; i < sequence_depth; i++)
> diff -r SP_new/SP71_lib.cpp SP/SP71_lib.cpp
> 2347c2347
> < for (int i = 1; i < start_col_2; i++)
> ---
> > for (i = 1; i < start_col_2; i++)
> 12200c12200
> < *t_pattern = get_row_pattern(bottom_row),
> ---
> > *t_pattern = get_row_pattern(bottom_row)
> 16155c16155
> < static int column_counter = 0 ;
> ---
> > static column_counter = 0 ;
> Only in SP_new/: a.out
> Apfelkiste:Tests chris$
>
>
> Christian
Many thanks for these comments and suggestions.
With best wishes,
Gerry
[toc] | [prev] | [next] | [standalone]
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Date | 2020-04-04 01:14 +0100 |
| Message-ID | <87v9mg85v3.fsf@bsb.me.uk> |
| In reply to | #72765 |
Bonita Montero <Bonita.Montero@gmail.com> writes: > ... In C++ every string literal has the type "const char *"; In fact they have array type. "abc" has type "array of 4 const char". Of course, in most contexts array-valued expressions "decay" to pointer values. -- Ben.
[toc] | [prev] | [next] | [standalone]
| From | Gerry Wolff <gerrywolff65@gmail.com> |
|---|---|
| Date | 2020-04-05 02:49 -0700 |
| Message-ID | <f88d7ab9-a949-4315-b6f3-df64639c7609@googlegroups.com> |
| In reply to | #72765 |
On Friday, 3 April 2020 18:35:45 UTC+1, Bonita Montero wrote: > I just tried to compile your SP62-program. There are a lot assignments > of string-literals to non-const string-pointers. In C++ every string > -literal has the type "const char *"; I don't know if this has ever > been different in earlier versions of C++, but earlier versions of > MSVC accepted the assignment of string-literals to char-pointers. So > you have to make your c-strings const. And there are a lot of erors > which advise you to use safe versions of C-runtime-functions which > are not prone to buffer-overflows. You can disable this errors by > defining _CRT_SECURE_NO_WARNINGS or you could use the safer versions > the error-message shows you. Many thanks for these and your other comments and suggestions that you made later. With best wishes, Gerry
[toc] | [prev] | [next] | [standalone]
| From | Sam <sam@email-scan.com> |
|---|---|
| Date | 2020-04-04 16:30 -0400 |
| Message-ID | <cone.1586032248.796812.6640.1004@monster.email-scan.com> |
| In reply to | #72763 |
[Multipart message — attachments visible in raw view] — view raw
Gerry Wolff writes: > * This project is part of a long-time research programme, and I would of > course give credit for help with programming in papers arising from the new > research. So, you're asking for assistance fixing old C++ code to the new C++ standard in exchange for …credit in a research paper? > * If you would be willing to help, please get in touch via > jgw@cognitionresearch.org. Please say something briefly about your > experience with Visual C++, and the time you would have available to work on > what I’ve described. It seems like you have very high standards, for accepting free help. I'm sure it would be an honor of a lifetime for someone to, most likely, sink massive amounts of time in cleaning up old code base that, most likely, was written by someone without much formal C++ training, knowledge, and experience; in exchange for recognition in some research paper that few people will ever read. This is obviously a drive-by posting, and this is likely just pissing into the wind: but you'll have far more success circulating your request amognst graduate students in Comp Sci in your institution of higher learning. I can't fathom anyone else caring to give a whit.
[toc] | [prev] | [next] | [standalone]
| From | Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> |
|---|---|
| Date | 2020-04-05 05:58 +0100 |
| Message-ID | <aAdiG.32149$ap_.22012@fx03.ams1> |
| In reply to | #72815 |
On 04/04/2020 21:30, Sam wrote: > Gerry Wolff writes: > >> * This project is part of a long-time research programme, and I would of course give credit for help with programming in papers arising from the new research. > > So, you're asking for assistance fixing old C++ code to the new C++ standard in exchange for …credit in a research paper? > >> * If you would be willing to help, please get in touch via jgw@cognitionresearch.org. Please say something briefly about your experience with Visual C++, and the time you would have available to work on what I’ve described. > > It seems like you have very high standards, for accepting free help. I'm sure it would be an honor of a lifetime for someone to, most likely, sink massive amounts of time in cleaning up old code base that, most likely, was written by someone without much formal C++ training, knowledge, and experience; in exchange for recognition in some research paper that few people will ever read. > > This is obviously a drive-by posting, and this is likely just pissing into the wind: but you'll have far more success circulating your request amognst graduate students in Comp Sci in your institution of higher learning. I can't fathom anyone else caring to give a whit. Give a whit? Typo there I think: give a shit is far more appropriate. /Flibble -- "Snakes didn't evolve, instead talking snakes with legs changed into snakes." - Rick C. Hodgin “You won’t burn in hell. But be nice anyway.” – Ricky Gervais “I see Atheists are fighting and killing each other again, over who doesn’t believe in any God the most. Oh, no..wait.. that never happens.” – Ricky Gervais "Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Byrne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?" "I'd say, bone cancer in children? What's that about?" Fry replied. "How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil." "Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say."
[toc] | [prev] | [next] | [standalone]
| From | Gerry Wolff <gerrywolff65@gmail.com> |
|---|---|
| Date | 2020-04-05 03:21 -0700 |
| Message-ID | <4abc40ab-07a3-47ee-a8c6-2272cfc7d766@googlegroups.com> |
| In reply to | #72815 |
On Saturday, 4 April 2020 21:30:58 UTC+1, Sam wrote: > Gerry Wolff writes: > > > * This project is part of a long-time research programme, and I would of > > course give credit for help with programming in papers arising from the new > > research. > > So, you're asking for assistance fixing old C++ code to the new C++ standard > in exchange for …credit in a research paper? > > > * If you would be willing to help, please get in touch via > > jgw@cognitionresearch.org. Please say something briefly about your > > experience with Visual C++, and the time you would have available to work on > > what I’ve described. > > It seems like you have very high standards, for accepting free help. I'm > sure it would be an honor of a lifetime for someone to, most likely, sink > massive amounts of time in cleaning up old code base that, most likely, was > written by someone without much formal C++ training, knowledge, and > experience; in exchange for recognition in some research paper that few > people will ever read. > > This is obviously a drive-by posting, and this is likely just pissing into > the wind: but you'll have far more success circulating your request amognst > graduate students in Comp Sci in your institution of higher learning. I > can't fathom anyone else caring to give a whit. Contrary to what you suggest, I've had a brilliant response from someone who has done a very thorough review and updating of my SP71 C++ program. I could not have asked for more. Gerry
[toc] | [prev] | [next] | [standalone]
| From | Juha Nieminen <nospam@thanks.invalid> |
|---|---|
| Date | 2020-04-07 06:33 +0000 |
| Message-ID | <r6h6rg$1c87$1@adenine.netfront.net> |
| In reply to | #72825 |
Gerry Wolff <gerrywolff65@gmail.com> wrote: > Contrary to what you suggest, I've had a brilliant response from someone who has done a very thorough review and updating of my SP71 C++ program. I could not have asked for more. So you got someone to do your work for you, for free. Congratulations. I wish I could have someone do my work for me, for free.
[toc] | [prev] | [next] | [standalone]
| From | Jorgen Grahn <grahn+nntp@snipabacken.se> |
|---|---|
| Date | 2020-04-07 10:39 +0000 |
| Message-ID | <slrnr8om2q.1r7q.grahn+nntp@frailea.sa.invalid> |
| In reply to | #72852 |
On Tue, 2020-04-07, Juha Nieminen wrote: > Gerry Wolff <gerrywolff65@gmail.com> wrote: >> Contrary to what you suggest, I've had a brilliant response from >> someone who has done a very thorough review and updating of my SP71 >> C++ program. I could not have asked for more. > > So you got someone to do your work for you, for free. Congratulations. > I wish I could have someone do my work for me, for free. There's no reason for a sarcastic response. GW was responsing to someone being rude and he handled that very well IMO. /Jorgen -- // Jorgen Grahn <grahn@ Oo o. . . \X/ snipabacken.se> O o .
[toc] | [prev] | [standalone]
Page 4 of 4 — ← Prev page 1 2 3 [4]
Back to top | Article view | comp.lang.c++
csiph-web