且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

关于代码的几个问题

更新时间:2023-12-03 14:54:52

引用:

问题1 - 运行时我的程序返回此错误。不推荐使用此项目的POSIX名称

我需要做些什么来解决这个问题。

Question 1 - When ran my program returns this error .The POSIX name for this item is deprecated
What do I need to do to fix this.

我认为这是一个警告,而不是错误。无论如何编译器是对的,当然:-),请参阅文档 [ ^ ]用于修复(即使用 _getch [ ^ ] )。







I believe that is a warning, not an error. Anyway the compiler is right, of course :-), see the documentation[^] for a fix (that is use _getch[^] instead).



引用:

问题2 - 如何获得击键?我通过#define UP_ARROW 25来定义向上箭头。这是正确的方法和正确的值。

Question 2 - How do I get a keystroke? I defined the up arrow by #define UP_ARROW 25. Is this the right way and the right value.

你可以测试它。