XiangXiChen's Blog

A Programmer's Blog

C++ -- char** to const char**

2013-04-24 | Comments

学习中……

PROBLEMS
char** t;
const char** t1 = t;//invalid conversion from char** to const char**. but WHY?

//A workaround
char** t;
const char* t2 = *t;//Convert to const char* first.
const char** t1 = &t2;//OK, here, but WHY?


引用
1. http://www.cnblogs.com/chenleiustc/archive/2011/04/09/2010647.html

Comments