QUICK EXAMPLE
Here you have a little example in C of something like you want
#include <stdlib.h>
#include <iostream>
#include <string.h>
int main(){
std::string input; // Declaring var input
while ( true ){ // While loop you need to use
std::cin>>input; // Reading user input
if ( input == "0x00" ){ // Use the quotes correctly in 0x00, 0x01, etc
output = "0x3F";
}else if ( input == "0x01" ){
output = "0x06";
}
}
return 0;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…