Skip to main content

Csharp to Cpp code translator

Project description

CSharpToCpp

Installation: pip install --upgrade cs2cpp Import:

from cs2cpp import CSharpToCppTranslator

translate code :eyes: :

cscpp = CSharpToCpp()
sourceCode = """using System;
// This is hello world program.
class Program
{
    public static void Main(string[] args)
    {
        var myFirstString = "ban";
        char*[] args = {"1", "2"};
        Console.WriteLine("Hello, world!");
    }
}"""
print(cscpp.Transform(sourceCode)) # translate code from C# to C++!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs2cpp-0.1.1.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

cs2cpp-0.1.1-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page