Friday, October 28, 2022

Digest for comp.lang.c++@googlegroups.com - 4 updates in 2 topics

Lynn McGuire <lynnmcguire5@gmail.com>: Oct 28 05:33PM -0500

Is there any way to skip spaces in a sprintf format ? In Fortran, one
puts 10x to skip ten spaces.
 
I am using the following right now:
 
// WRITE (OUFILE,1700) current_page
// 1700 FORMAT (67X,'PAGE:',I8)
sprintf (termin1.outbuffer, "
PAGE:%8d", prglab1.current_page);
outwri (termin1.outbuffer);
 
Thanks,
Lynn
Bart <bc@freeuk.com>: Oct 28 11:47PM +0100

On 28/10/2022 23:33, Lynn McGuire wrote:
>    outwri (termin1.outbuffer);
 
> Thanks,
> Lynn
 
This prints a string within a field of 10 spaces:
 
printf("<%*s>\n",10,"");
 
"*" is used for a variable field width, padded on the left. "%-*s" will
pad on the right.
Lynn McGuire <lynnmcguire5@gmail.com>: Oct 28 02:59PM -0500

On 10/27/2022 3:42 PM, Richard wrote:
 
> I dropped you a private email with a couple suggestions, but I always
> seem to end up in people's spam folders, so just a little FYI
> publicly.
 
Hi Richard,
 
I appreciate the suggestions.
 
Benchmarking our software against previous known good results is a great
idea. In fact, we have been doing that for around 30 years now. I even
wrote my own comparison tool to cut down on the noise as the benchmarks
produce 400+ MB of text output that we analyze before each release.
 
Sincerely,
Lynn McGuire
Lynn McGuire <lynnmcguire5@gmail.com>: Oct 28 03:10PM -0500

On 10/27/2022 3:42 PM, Richard wrote:
 
> I dropped you a private email with a couple suggestions, but I always
> seem to end up in people's spam folders, so just a little FYI
> publicly.
 
BTW, this software was started in 1965 on the Univac 1108. It has been
ported to many platforms over the years. I ported it to the CDC 7600 in
1976 IIRC. It is currently at version 16.15. This is the first
conversion to another software language though as it was pure Fortran
until 1994.
 
Thanks,
Lynn
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: