Re: The joy of FORTRAN

Liste des GroupesRevenir à col misc 
Sujet : Re: The joy of FORTRAN
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.misc alt.folklore.computers
Date : 26. Sep 2024, 21:51:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vd4hgd$c3jf$8@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Pan/0.160 (Toresk; )
On Thu, 26 Sep 2024 16:18:01 GMT, Charlie Gibbs wrote:

One of the favourite functions in my library pulls the next token from a
delimited string, but as opposed to strtok() it does it
non-destructively and can handle empty strings.

Use a high-level language which has all this and more:

    for item in "the,quick,brown,fox".split(",") :
        print(item)
    #end for

Output:

    the
    quick
    brown
    fox

In Python, strings are objects, and that applies to string expressions
(including string literals) as well.

Date Sujet#  Auteur
25 May 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal