CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2002
    Posts
    6

    Smile I gotta rewrite a CPP program to ansi C programm. help

    Is there any helper programs? Thank you.

  2. #2
    Join Date
    May 2000
    Location
    Germany
    Posts
    369
    Use your brain. Sorry ;-)

  3. #3
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443

    Re: I gotta rewrite a CPP program to ansi C programm. help

    Originally posted by smartnosex
    Is there any helper programs? Thank you.
    Yes. The Comeau C++ compiler translates the C++ code into C code. Have a look at www.comeau.com. However, the generated C code is not "human readable" -- the idea is not to take this code and use it as a codebase, but that is just a stage in the creation of the executable code.
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

  4. #4
    Join Date
    May 2002
    Location
    Ukraine
    Posts
    228
    For incapsulation you can use
    a struct instead a class and the first parameter
    of the c-function for pointer to the stract.

    For inheritance you can use members of struct
    type inside other struct.

    For polymorphism you can use arrays of functions .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured