Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Cpp2C

A high level C++ classes to c structs compiler.

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Cpp2C

A high level C++ classes to c structs compiler.

This program converts C++ classes to C structs, and has some limitations.

Features and limitations:

  1. Multiple variable declaretion is illegal

Ex:

Legal: int a; int b; int c; Illegal: int a,b,c;

  1. IF and THEN forward is illegal:

Ex:

Legal: if (num2==6) Illegal: if (num2==6) printf(“Its true!”);

printf(“Its true!”);

  1. Int, float, void, class and struct datatypes are supported
  2. Refference variable not supported
  3. Only one default parameter is supported, no more
  4. This is a symbolic translator, so has bugs and limitations