putw and doubles

This is a discussion on putw and doubles within the C++ Programming forums, part of the General Programming Boards category; new-b question: what is the version of putw that is used for double (it seems that putw is only for ...

  1. #1
    Registered User deleeuw's Avatar
    Join Date
    Aug 2001
    Posts
    31

    Question putw and doubles

    new-b question:
    what is the version of putw that is used for double
    (it seems that putw is only for int)

    Thx

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    According to this reference, there is no such function. You could write it yourself or use puts in some way, like converting the double to string and use puts to write it.

    http://www.cplusplus.com/ref/cstdio/index.html

  3. #3
    Registered User deleeuw's Avatar
    Join Date
    Aug 2001
    Posts
    31
    hartelijke bedankt mijnheer
    (Ik hope dat dat richtig geschrieven is!)

    deleeuw
    (van Drenthe)

  4. #4
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Graag gedaan mijnheer deleeuw. Maar vanwaar die Deutsche woorden?

  5. #5
    Registered User deleeuw's Avatar
    Join Date
    Aug 2001
    Posts
    31
    waant ik niet goed hollandse kan:
    mijn ouders kwam naar Amerika bevor ik was gebooren.
    Ik heb duits op universitijt, maar mien ouders praoten hollandse (op drentse dialekt) t'huus.

  6. #6
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Dus je woont in Amerika en hebt Hollandse ouders, of eigenlijk Drentse ouders? Dat is wel te merken, "waant", "mien ouders praoten", dat is dialect.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21