converting Niklaus Wirth's examples from pascal to C

This is a discussion on converting Niklaus Wirth's examples from pascal to C within the C Programming forums, part of the General Programming Boards category; Hello, I know almost nothing about pascal, but I found some reference online. How difficult is it to convert "Algorithms ...

  1. #1
    fsx
    fsx is offline
    Registered User fsx's Avatar
    Join Date
    Apr 2009
    Posts
    29

    converting Niklaus Wirth's examples from pascal to C

    Hello,

    I know almost nothing about pascal, but I found some reference online.
    How difficult is it to convert "Algorithms + Data structures = Programs
    by N. Wirth"'s examples to C?
    Do you suggest to do this by hand or to use a p2c automation?

    Regards,

    FSX

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I'm pretty sure any tool to translate Pascal to C would produce pretty awful C code.

    Why not get a book on the subject that is written FOR C. There are a few of those around.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Complete Beginner
    Join Date
    Feb 2009
    Posts
    312
    Quote Originally Posted by fsx View Post
    Do you suggest to do this by hand or to use a p2c automation?
    Converting Pascal To C is wirth-less.

    Greets,
    Philip
    All things begin as source code.
    Source code begins with an empty file.
    -- Tao Te Chip

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