C++ TCHAR* 与char* 互转 在MSDN中有这么一段: Note: The ANSI code pages can be different on different computers, or can be changed for a single computer, leading to data corruption. For the most consistent results, applications should use Unicode, such as UTF-8
#include <stdio.h> int main(void) { ; ; int c = a + b; a += b; printf("c=%d",c); //printf("c=%s",c); printf("a=%d",a); //printf("a=%c",a); //printf("a=%s",a); // your code goes here ; } 结果c=131 a=-12