Loading ...
Sorry, an error occurred while loading the content.

Messages List

75776

Re: Reversing the standard input

It looks good enough to me. Just document and then, document again. Verily, with every difficulty there is relief (94:6) ________________________________ From:
Arbol One
Aug 18
#75776
 
75775

Re: Reading array of characters from a file and counting how many el

... Based on the second half of your subject line, I'd wager that you are approaching this problem incorrectly. ACM-style problems always have a little
Thomas Hruska
Aug 16
#75775
 
75774

Reading array of characters from a file and counting how many elemen

I've been working on the qualifying problem from google's codejam and I am stuck. Here is the problem
catsonmars02
Aug 15
#75774
 
75773

Re: Reversing the standard input

On 8/12/2017 3:05 AM, 'Richard Cavell' richardcavell@... [c-prog] ... Gists are better for this sort of thing rather than a full GitHub repo. GitHub repos
Thomas Hruska
Aug 12
#75773
 
75772

Re: Reversing the standard input

Hi Richard - looks good. I think it should have comments, even though it's relatively simple - I write them mainly for myself as I can't remember what I was
johnmatthews2000
Aug 12
#75772
 
75771

Reversing the standard input

Hello, everyone. As a training exercise for myself (and anyone who peruses github), I've written two programs (in C89 and C++14) that do this: Read the
Richard Cavell
Aug 12
#75771
 
75770

Re: ENOMEM on Windows 10

On Fri, Jul 7, 2017 at 7:19 AM, izecksohn@... [c-prog] < ... Since ENOMEM is technically a Linux/POSIX error, maybe. However to find out on Windows what
Paul Herring
Jul 7
#75770
 
75769

ENOMEM on Windows 10

Is it possible to report ENOMEM to the user on Windows 10? It seems to me that my program is being killed without any error message. I check the pointer
izecksohn
Jul 6
#75769
 
75768

Re: Inverse of working formula doesn't work

... I'm not sure what revision of the program you're looking at, but the only reason I can think of for pence = pounds * 100 is setting up a place to start.
Michael
Jun 19
#75768
 
75767

Re: Inverse of working formula doesn't work

Let me know how it turns out! On Thursday, June 15, 2017 8:06 AM, "Michael msulli1355@... [c-prog]" wrote: ... Because I was
Benjamin Scott
Jun 16
#75767
 
75766

Re: Inverse of working formula doesn't work

... Because I was thinking that there were 100 pence to a pound instead of (12pence to one shilling) * (20 shillings to a pound.). You're correct, of course.
Michael
Jun 15
#75766
 
75765

Re: Inverse of working formula doesn't work

On Wed, Jun 14, 2017 at 11:38 PM, scottbenjamin1799@... [c-prog] < ... To shift the decimal point two places. -- PJH
Paul Herring
Jun 15
#75765
 
75764

Re: Inverse of working formula doesn't work

If the there are 240 pence to a pound, Why is the Pounds multiplied by 100 and put into Pence?
scottbenjamin1799
Jun 14
#75764
 
75763

Re: Inverse of working formula doesn't work

On Wed, Jun 14, 2017 at 4:09 PM, Michael msulli1355@... [c-prog] < ... Indeed - 20*s* per £ means each *s* is £0.05 (£1.00/20) - that's where the
Paul Herring
Jun 14
#75763
 
75762

Re: Inverse of working formula doesn't work

... My book clearly says "20 shillings to a pound, and 12 pence to a shilling." Your logic does make sense to me though. Clearly some people lost money when
Michael
Jun 14
#75762
 
View First Topic Go to View Last Topic