不知道你要干什么,我就写两个简单的。 c++代码: include <iostream> using namspace std; int main() {cout<<"this is my first C++"<<endl; return 0; } C#代码: using System; using namespace C# {class C# {private static void Main() {Console.WriteLine("this is my first C#"); } } }