幸好,google search後發現有啟動但不偵錯的方法:Ctrl + F5。
但畢竟是一個coder,就想找幾個實現他的方法。有以下兩種:
Call dll :
- 在程式開頭加入 using System.Runtime.InteropServices;
- 然後 in class 內加入
- [DllImport( "msvcrt.dll" )]
- static extern bool system( string str );
Code :
- Console.Write( "Press any key to continue . . . " );
- Console.ReadKey( true );
Enjoy it.
沒有留言:
張貼留言