QList <QString> list; 
{ 
  QString str("This is a test string"); 
  list < < str; 
} 
  qDebug() < < list[0] < < "How are you"; 
请问上述代码为什么输出结果是:
"This is a test string" How are you 
呢? 
1. "This is a test string" ----引号哪来的?
3. [0]去掉只对list输出的时候 输出结果变成:
("This is a test string") How are you ----------括号哪来的?
达人帮解释解释哈~
[ 此帖被sakiola在2009-08-14 09:40重新编辑 ]