經安全檢測,此網站為安全網站,請放心前往原始網址!

c++ - Convert an int to ascii character - Stack Overflow

int i=5; char c = 'A'-1 + i; // c is now 'E', the 5th letter. Note that because in C/Ascii, A is considered the 0th letter ... Note that because in C/Ascii, A is considered the 0th letter of the alphabet, I do a minus-1 to compensate for the normally unde

stackoverflow.com

網址安全性掃描由 google 提供