Sujet : Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it
De : nospam (at) *nospam* dfs.com (DFS)
Groupes : comp.os.linux.advocacyDate : 08. Mar 2024, 22:41:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <usft59$1t70f$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Betterbird (Windows)
On 3/8/2024 3:22 PM, DFS wrote:
On 3/8/2024 2:48 PM, rbowman wrote:
On Fri, 8 Mar 2024 08:09:33 -0500, DFS wrote:
>
It's harder than you think to randomly shuffle the words in a shorter
sentence, so that each word ends up in a different position than it
started in.
>
Bring it!
Thanks for doing it.
FYI:
--------------------------------------------------------------------------
~$ gcc jumble_rbowman.c -o jumble
jumble_rbowman.c: In function ‘main’:
jumble_rbowman.c:9:29: warning: missing terminating " character
9 | char* sentence = strdup("Once you try it, you'll see it doesn't need
| ^
jumble_rbowman.c:9:29: error: missing terminating " character
9 | char* sentence = strdup("Once you try it, you'll see it doesn't need
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jumble_rbowman.c:10:1: error: ‘spice’ undeclared (first use in this function)
10 | spice.");
| ^~~~~
jumble_rbowman.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
jumble_rbowman.c:10:7: warning: missing terminating " character
10 | spice.");
| ^
jumble_rbowman.c:10:7: error: missing terminating " character
10 | spice.");
| ^~~
jumble_rbowman.c:11:5: error: expected identifier before ‘char’
11 | char* tokens[20];
| ^~~~
jumble_rbowman.c:54:1: error: expected ‘,’ or ‘;’ before ‘}’ token
54 | }
| ^
jumble_rbowman.c:54:1: error: expected declaration or statement at end of input
--------------------------------------------------------------------------
Sorry. That's ALL from a crlf inserted by the newsreader. It compiled cleanly after I took it out.
Date | Sujet | # | | Auteur |
7 Mar 24 | OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 26 | | DFS |
7 Mar 24 | ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 25 | | rbowman |
8 Mar 24 | ![](img/e.gif) ![+](img/T.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 23 | | DFS |
8 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 22 | | rbowman |
8 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![+](img/T.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 8 | | DFS |
8 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![i](img/I.gif) ![+](img/T.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 4 | | DFS |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![i](img/I.gif) ![i](img/I.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 3 | | rbowman |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![i](img/I.gif) ![i](img/I.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 2 | | vallor |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![i](img/I.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 1 | | rbowman |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![i](img/I.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 3 | | rbowman |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 2 | | vallor |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 1 | | rbowman |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 13 | | DFS |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 12 | | rbowman |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![+](img/T.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 1 | | DFS |
9 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: | 10 | | rbowman |
10 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: | 9 | | Chris Ahlstrom |
10 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: | 8 | | rbowman |
10 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![+](img/T.gif) Re: 16-bit floating-point. | 5 | | rbowman |
10 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![i](img/I.gif) ![`](img/L.gif) Re: Some examples ? | 4 | | rbowman |
11 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![`](img/L.gif) Re: How does your Pico "make sure everything is working" ? | 3 | | rbowman |
11 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: I was burning EEPROMs for handheld devices back in 1984, Orem Utah. | 2 | | rbowman |
11 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: Had any good Blutwurst lately ? | 1 | | rbowman |
10 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![+](img/T.gif) Re: OT programming challenge: | 1 | | Chris Ahlstrom |
10 Mar 24 | ![](img/e.gif) ![i](img/I.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![](img/e.gif) ![`](img/L.gif) Re: 16-bit floating-point. | 1 | | DFS |
9 Mar 24 | ![](img/e.gif) ![`](img/L.gif) Re: OT programming challenge: fastest/best/shortest C program to jumble a sentence, then restore it | 1 | | DFS |