指针与字符串

#include <iostream>
using namespace std;

int main()
{
	const char *str1="Hello";
	cout<<str1[4]<<endl;
	return 0;
}

原文地址:https://www.cnblogs.com/zhangdongsheng/p/1871414.html