殺了我吧...
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...
全文閱讀