Get ascii value of string in C++. Copy. int main() { char *s="hello"; while(*s!='\0') { printf("%c --> %d\n",*s,*s); s++; } return 0; }.
確定! 回上一頁