Re: C to plain English

new topic     » goto parent     » topic index » view thread      » older message » newer message

>>> Terry <terry at EDERNEY.IDPS.CO.UK> 07/28/99 09:17AM >>>
Hello again

Is there anybody there who could translate the following for me?
Preferably into plain English, or if not, into Eu?

The // I am taking as equiv. to our --
but things like ++ after a name ,* before a name, ->, < and && have
me beatsad

-----------------------

In C, ++ after a name mean increment it by 1.  So var++ in C is=20
var +=3D 1 in Eu2.1 or var =3D var + 1 in earlier versions.  Stars (*) are =
pointers, which usually are used in a way similar to the way Euphoria uses =
sequences.  Although sometimes Euphoria uses allocate, poke, and peek if =
direct memory manipulation is needed.
The arrow ( -> ) in C is the way to access a record in a structure when =
the structure variable is a pointer.  && is logical and, and || is logical =
or.  The less than sign ( < ) works the same as in Euphoria.  C's for loop =
uses three parts: init, while, increment.  It's really a bit more involved =
than that, but that's the general use of them anyway.  Hope this helps.

Michael J. Sabal

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu