书本206页,练习6.36
编写一个函数声明,使其返回数组的引用,并且该数组包含10个string对象
1. string (*func())[10];
2.使用类型别名:
typedef string sPtr[10];
//or using sPtr=string[10];
sPtr &func();
3.使用decltype关键字
string str[10];
decltype(str) &func(string s);
4.使用尾置返回类型
auto func()->string (&)[10];