Thread: c++ to c convertor

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    30

    Unhappy c++ to c convertor

    Hi i wanted to know is there a C++ to ansi C convertor available?
    As i have a C++ program and would like to use it in C

    thanks

    kendals

  2. #2
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    ... ?

    C and C++ are pretty much the same- why not just use a C++ compiler, so you can use both C and C++?

    If it's just a console program, you can change the cout to printf, etc., include standard C libraries like stdio and stdlib, "unwrap" classes, etc.

  3. #3
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230
    I doubt it to tell you the truth. Like rmullen3 said, C and C++ are pretty much the same. However, their differences are kind of hard to deal with. I think it would be tough to convert an ANSI C++ Object Oriented program to an ANSI C Procedural program.

    Why not just convert it yourself? Why does it matter what language it is?

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    30

    thanks

    Ill try to convert it, i found like c to java convertors, i just thought that you might get one for c++ to c. I wanted to convert it because i have a prog i made and wanted to use it in dos.

    thanks anyway.
    Kendals

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Roman Numeral Convertor
    By mike1000 in forum C Programming
    Replies: 2
    Last Post: 11-24-2005, 02:53 PM
  2. morse code convertor
    By neandrake in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2004, 10:53 AM
  3. Currency Convertor
    By Dangerous Dave in forum C Programming
    Replies: 1
    Last Post: 11-14-2003, 06:44 AM
  4. Binary Convertor Function
    By AsmLover in forum C Programming
    Replies: 5
    Last Post: 10-30-2003, 12:07 PM
  5. Java 2 C# convertor
    By aym_7 in forum C# Programming
    Replies: 2
    Last Post: 06-03-2002, 06:07 AM