这位朋友,在VC++中定义字符数组是用char *数组名[]来定义的,不能用string [4] = {"00","01","11","10"};这样来定义,这样会出错。下面是我调试的程序代码,已经编译通过。#include<iostream.h> void main() { char *list[] = {"00","01","11","10"}; for ( int i = 0; i < 4 ; i++ ) { cout<<list[i]<<endl; //这一句是输出指针数组中的内容。 }}程序运行的结果是:00011110