指针与字符串

#include <iostream>
using namespace std;

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

posted @ 2010-11-08 01:20  瓜蛋  阅读(365)  评论(0编辑  收藏  举报