View Full Version : مبتدی: دیدن  خروجی  در #F
  
javady_joon
دوشنبه 07 بهمن 1392, 20:39 عصر
با سلام
من برنامه ور با #F  مینویسم ولی  نمیتونم  خروجی رو ببینم  یعنی  یکباره  میاد و میره
با  چه  دستوری  میشه  خروجی رو  فریز  کرد؟ تا  با زدن  دکمه ای بره؟
anotheruser
یک شنبه 03 فروردین 1393, 10:02 صبح
سلام
Console.ReadKey() |> ignore
anotheruser
یک شنبه 03 فروردین 1393, 10:04 صبح
// When running in debug mode and using Visual Studio to run the program,  
// one may miss the results as the program runs to the end and exists.  
// Since running normally, i.e. Visual Studio Ctrl-F5, will add an pause
// automatically the pause is only shown when in debug mode.  
let pause () =  
  match System.Diagnostics.Debugger.IsAttached with  
  | true ->  
      printfn "\nPress any key to continue."  
      System.Console.ReadKey(true) |> ignore  
  | false -> ()  
pause ()
anotheruser
یک شنبه 03 فروردین 1393, 10:05 صبح
کپی کردم از اینجا (http://stackoverflow.com/questions/15308268/how-to-pause-the-console-in-f-language)
 
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.