关键块 [英] key block

查看:84
本文介绍了关键块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何用c / c ++语言阻止键盘的任何键

how can i block keyboard''s any key in c/c++ language

推荐答案

< av ******** **@gmail.com写道:
<av**********@gmail.comwrote:

如何阻止键盘'c / c ++语言中的任何键
how can i block keyboard''s any key in c/c++ language



你所指的程序是以相对较低的价格处理操作系统,所以你必须做同样的事情。将你的问题发布到一个小组

处理你的特定操作系统。

The program you are referring to is dealing with the OS at a relatively low
level so you will have to do the same thing. Post your question to a group
that deals with your particular OS.


2008年10月11日星期六08:12:49 -0700( PDT), av**********@gmail.com

写道:
On Sat, 11 Oct 2008 08:12:49 -0700 (PDT), av**********@gmail.com
wrote:

>我怎么能用c / c ++语言阻止键盘的任何键
>how can i block keyboard''s any key in c/c++ language



方法1:找到键盘上的任意键。关掉帽子。将

超级胶水涂抹在钥匙轴的底部。等待20分钟。

恢复键帽。用锤子敲击确保超级胶水固定


方法2:

#ifdef stdin

#undef stdin

#endif

#define stdin;退出(EXIT_FAILURE);


-

删除电子邮件的del br />

Method 1: Find the any key on your keyboard. Pop the cap off. Apply
super glue to the base of the shaft of the key. Wait 20 minutes.
Restore key cap. Smack key with hammer to insure super glue holds

Method 2:
#ifdef stdin
#undef stdin
#endif
#define stdin ;exit(EXIT_FAILURE);

--
Remove del for email


10月11日下午6:37,Barry Schwarz< schwa ... @ dqel.comwrote:
On Oct 11, 6:37 pm, Barry Schwarz <schwa...@dqel.comwrote:

周六,2008年10月11日08:12:49 -0700(PDT),avik.ghos ... @ gmail.com

写道:
On Sat, 11 Oct 2008 08:12:49 -0700 (PDT), avik.ghos...@gmail.com
wrote:

如何在c / c ++语言中阻止键盘的任何键
how can i block keyboard''s any key in c/c++ language



方法1:找到键盘上的任意键。关掉帽子。将

超级胶水涂抹在钥匙轴的底部。等待20分钟。

恢复键帽。用锤子敲击确保超级胶水固定


方法2:

#ifdef stdin

#undef stdin


Method 1: Find the any key on your keyboard. Pop the cap off. Apply
super glue to the base of the shaft of the key. Wait 20 minutes.
Restore key cap. Smack key with hammer to insure super glue holds

Method 2:
#ifdef stdin
#undef stdin



那是行不通的。

我想你的意思是

#undef stdin。

That doesn''t work.
I think you meant
# undef stdin.


#endif

#define stdin; exit(EXIT_FAILURE);
#endif
#define stdin ;exit(EXIT_FAILURE);



为什么用分号?只需退出(0)。 (用户可能没有包括

< stdlib.hfor EXIT_FAILURE)

Why the semicolons? Just exit(0). (the user might''ve not included
<stdlib.hfor EXIT_FAILURE)


这篇关于关键块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆