int main() { char *name[6]={"one","two","three","four","five","six"}; std::cout<<std::endl<<*name; }
a=1; //第几个元素 c=2; //第几个字母 std::cout<<*(*name[a-1]+c-1);
#include <iostream> using namespace std; int main(int argc, char *argv[]) { char *name[] = { "one", "two", "three" }; cout << name[0][1] << endl; return 0; }