Csharp to Cpp code translator
Project description
CSharpToCpp
Simple C# to C++ translator written in Python
Get Started
Install
pip install --upgrade cs2cpp
Usage
from cs2cpp import CSharpToCpp
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.translate(sourceCode)) # translate code from C# to C++!
Project details
Release history Release notifications | RSS feed
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.2.0.tar.gz
(15.0 kB
view hashes)