Re: Simplicity has a future



Ian Collins said:

Richard Heathfield wrote:

Read the code more carefully. I think you jumped to a false conclusion.

OK, it may be legal C, but it ain't pretty.

#include <stdio.h>

int main(void)
{
char title__of__the__program[81] =
"C to C++ Translation\nONLY extra casts and renaming"
" of variables are allowed.\n\n\n\n\n";

printf( "%s\n", title__of__the__program );

But my code very definitely did not do that. If you want to introduce
arbitrary errors into your copy of the code, that's up to you, but the
error was not present in /my/ code.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.



Relevant Pages

  • Re: Simplicity has a future
    ... Ian Collins said: ... int main ... arbitrary errors into your copy of the code, that's up to you, but the ... rjh at above domain ...
    (comp.lang.c)
  • Re: Simplicity has a future
    ... Richard Heathfield wrote: ... int main ... arbitrary errors into your copy of the code, that's up to you, but the ... Ian Collins. ...
    (comp.lang.c)
  • Re: trying to assign function pointers
    ... Ian Collins said: ... int = increasing; ... qsort, compar); ... rjh at the above domain, ...
    (comp.lang.c)
  • Re: Standard integer types vs types
    ... Ian Collins said: ... If you have C99, you can do that, using long long int. ... you can't guarantee that a 64-bit type is available.) ...
    (comp.lang.c)
  • cast to void *
    ... Ian Collins wrote: ... Are you having trouble following the discussion and making ... simple deductions, Mr. Collins? ... x is an (int *), ...
    (comp.lang.c)