get ascii value of qchar
#include <iostream>
int main() {
char myChar = 'q';
int asciiValue = static_cast<int>(myChar);
std::cout << "ASCII value of '" << myChar << "': " << asciiValue << std::endl;
return 0;
}
#include <iostream>
int main() {
char myChar = 'q';
int asciiValue = static_cast<int>(myChar);
std::cout << "ASCII value of '" << myChar << "': " << asciiValue << std::endl;
return 0;
}