指针的指针的运用

<span style="font-size:18px;">#include<iostream>
using namespace std;
int main()
{
	char* month[] = {
		"january",
		"february",
		"match",
		"april",
		"may", "june", "july", "august",
		"september", "october", "november",
		"december"
	};
	int i;
	char**p;
	p = month;
	cout << "输入月份" << endl;
	cin >> i;
	cout << "输出月份" << *(p + i - 1) << endl;
	system("pause");
	return 0;
}</span>

你可能感兴趣的:(指针的指针的运用)