Re: Such a simple thing, yet

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

>Such a simple thing, yes.
>
>printf(1,"%d",{d[1]})


Even cleaner would be:

print(1,d[1])

- Puts prints them as a *string* (it interpreters the given sequence as a
one dimension collection of values represention characters based upon the
AscII standard)
- Print prints them as as *data* (it interpreters the given sequence,
showing its structure by using {'s and '}'s, containing a representation of
the values in base 10, sometimes with an scientific exponent (e.g. 4.343e23)

Printf is meant to format data into a character-sequence (1D-seq containing
ascII values) and has special escape characters so you can control the way
the data is interpreterd. Heximal, Decimal, AscII, etc.)

I hope this explenation helps you in understanding the need for different
routines and the way it works, instead of just knowing the prinf () trick or
know how to use ? or print ()

Ralf

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

Search



Quick Links

User menu

Not signed in.

Misc Menu