参考c库函数_getch(): using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices;namespace ConsoleApplication1 { class Program { [DllImport("msvcrt")] static extern int _getch(); static void Main(string[] args) { Console.WriteLine("Hello world"); Console.WriteLine("Press any key to end.."); _getch(); } } }
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;namespace ConsoleApplication1
{
class Program
{
[DllImport("msvcrt")]
static extern int _getch(); static void Main(string[] args)
{
Console.WriteLine("Hello world");
Console.WriteLine("Press any key to end..");
_getch();
}
}
}
#include<"math.h">
System.Math#include<"stdio.h">
System.IO有些功能类似吧
qsort()函数:c#里可以用
Using System;
CompareTO()函数