在没有按下输入的情况下读取单个字符..就像使用c语言的getc一样 [英] read a single character without press enter.. just like getc in c language
问题描述
你好,
我正试图从控制台读取一个角色,就像c语言中的getc函数一样
我正在尝试使用WINAPI但是不适用于这次..
其他方法,如清屏工作好用WINAPI ..其他人来
请帮助并尝试了解,因为我不会说英语
tx
hello,
i''m trying to read a character from console just like getc function in c languaje
i''m trying with WINAPI but dont works at this time..
other methods like clear screen works OK with the WINAPI.. an others to
please helpe and try understandme because i dont speak in english
tx
推荐答案
JuanK写道:
JuanK wrote:
你好,
我正试图从控制台读取一个角色,就像在
语言中的getc函数一样。我正在尝试使用WINAPI,但此时无法正常工作...
其他方法,如清屏工作可以和WINAPI一起使用......还有其他方法
请帮助并尝试了解,因为我不要说英语。
hello,
i''m trying to read a character from console just like getc function in c
languaje. i''m trying with WINAPI but dont works at this time...
other methods like clear screen works OK with the WINAPI.. an others too
please helpe and try understandme because i dont speak in english.
请参阅文档中的Console.Read()作为示例。
Frans。
-
获取LLBLGen Pro,.NET的新O / R映射器: http://www.llblgen.com
我的.NET博客: http://weblogs.asp.net/fbouma
Microsoft C#MVP
See Console.Read() in the documentation for an example.
Frans.
--
Get LLBLGen Pro, the new O/R mapper for .NET: http://www.llblgen.com
My .NET Blog: http://weblogs.asp.net/fbouma
Microsoft C# MVP
这是一个小样本,无需输入即可获得单个密钥使用
pinvoke帮助以及在控制台上使用*获取密码的示例
更换。 HTH。
-
William Stacey,MVP
news:60 ********************************** @ microsof t.com ...
Here is a little sample that gets single key without enter required using
pinvoke help and example of getting a password at the console with "*"
replacement. HTH.
--
William Stacey, MVP
"JuanK" <ju***@etb.net.co> wrote in message
news:60**********************************@microsof t.com...
你好,我试图从控制台读取一个字符就像c
languaje中的getc函数一样。我正在尝试使用WINAPI,但此时无法正常工作...
其他方法,如清屏工作可以和WINAPI一起使用......还有其他方法
请帮助并尝试了解,因为我不要用英语说话。
tx
hello,
i''m trying to read a character from console just like getc function in c languaje. i''m trying with WINAPI but dont works at this time...
other methods like clear screen works OK with the WINAPI.. an others too
please helpe and try understandme because i dont speak in english.
tx
请参阅我的代码示例。
-
William Stacey,MVP
news:29 ********************************** @ microsof t.com ...
See my code example.
--
William Stacey, MVP
"Juank" <ju***@etb.net.co> wrote in message
news:29**********************************@microsof t.com...
嘿!!!!
当然......我已经看到了关于这个功能的文件,但这个
不像getc那样工作......因为按ENTER键需要读取输入字符。
tx
hey!!!!
off course... i already see the documntation about this function but this not work like getc... because press ENTER key is required to read the input character.
tx anyway
这篇关于在没有按下输入的情况下读取单个字符..就像使用c语言的getc一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!