#include <iostream>
using namespace std;

int main()
{
	char *p = "123";
	*p = '4';

	return 0;
}
       有错,请以后注意。

本文转载:CSDN博客