C++/controlling the working of hardware through c/c++
i've been given a question that whatever i write as a string on runnig tym it should be displayed in capital letters,, in short the working of caps lock key is to be controlled through c++, how it can be done?
also please suggest me some book in which it has been given that how to control the working of hardware devices through c/c++, thnx :-)
For capitalizing the strings you can use this program:
// convert the string in upper case letter
# include <iostream>
void makeUpper(char str)
int main (void)
cout<<"Enter a word ";
Hardware is not my field and I don't know much about that but what I know is that programming hardware devices directly is mostly done through C. Learn to program in C and then you can move on to read any book on micro-controllers which are used in all hardware devices.