Home > Back-end >  The meaning of this code
The meaning of this code

Time:03-21

#include
#include
#include
Int main (void)
{
The int value=https://bbs.csdn.net/topics/0;
Printf (" The current status of your The rid_device_info_keyboard is: \ n ");
X0040 value=https://bbs.csdn.net/topics/peekb (0, 0 x0017);
If (value & amp; 1)
Printf (" Right shift on \ n ");
The else
Printf (" Right shift off \ n ");
If (value & amp; 2)
Printf (" the Left shift on \ n ");
The else
Printf (" the Left shift off \ n ");
If (value & amp; 4)
Printf (" the Control key on \ n ");
The else
Printf (" the Control key off \ n ");
If (value & amp; 8)
Printf (" Alt key on \ n ");
The else
Printf (" Alt key off \ n ");
If (value & amp; 16)
Printf (" Scroll lock on \ n ");
The else
Printf (" Scroll lock off \ n ");
If (value & amp; 32)
Printf (" Num lock on \ n ");
The else
Printf (" Num lock off \ n ");
If (value & amp; 64)
Printf (" Caps lock on \ n ");
The else
Printf (" Caps lock off \ n ");
return 0;
}

CodePudding user response:

You call the function peekb is doing this in, specification can read it,

CodePudding user response:

reference 1st floor forever74 response:
you call the function peekb is doing this in, specification can read it,

What is this peekb function? And compile time showed that the function is undefined why?

CodePudding user response:

reference Star - Sum 2 floor response:
Quote: refer to 1st floor forever74 response:
you call the function peekb is doing this in, specification can read it,

What is this peekb function? And compile time showed that the function is undefined why?

Undefined show that no add peekb function to come in, didn't find the definition, the function is not you write? Or that all imported into the compiler code doesn't?

CodePudding user response:

Oh, so the problem is compiled,
Then compile what mistake? I have always advocated on the first error modification, the error back behind the may disappear,

CodePudding user response:

This kind of a see be dealing with hardware function, is not reasonable,
Help you get to see it, there should have to explain which one is stem what of,

CodePudding user response:

reference 3 building self-confidence boy reply:
Quote: refer to the second floor Star - Sum response:
Quote: refer to 1st floor forever74 response:
you call the function peekb is doing this in, specification can read it,

What is this peekb function? And compile time showed that the function is undefined why?

Undefined show that no add peekb function to come in, didn't find the definition, the function is not you write? Or that all imported into the compiler code doesn't?


Should be a non-standard TC library function, reading a hardware register what of,

CodePudding user response:

refer to 6th floor forever74 response:
Quote: refer to the third floor confident boy reply:
Quote: refer to the second floor Star - Sum response:
Quote: refer to 1st floor forever74 response:
you call the function peekb is doing this in, specification can read it,

What is this peekb function? And compile time showed that the function is undefined why?

Undefined show that no add peekb function to come in, didn't find the definition, the function is not you write? Or that all imported into the compiler code doesn't?


Should be a non-standard TC library function, read what hardware registers,

That is the problem of header files, didn't introduce the header file?
  • Related