注册 登录
编程论坛 C++教室

这道题怎么运行?

newyj 发布于 2008-04-30 13:39, 541 次点击
编译通过了 但是 不能运行
不知道是那里错了
#include<iostream.h>
int main()
{
    char *colors[]={"Red","Blue","Yellow","Green"};
    char **pt;            
    pt=colors;
    for (int i=0;i<=3;i++) {
        cout<<"pt="<<pt<<endl;
        cout<<"*pt="<<*pt<<endl;
        cout<<"**pt="<<**pt<<endl;
        pt++;
    }
    return 0;
}
2 回复
#2
sunkaidong2008-04-30 13:41
我能运行...
#3
newyj2008-04-30 13:51
我再编译了一次 现在能运行了
不知道 刚才为什么不行
还谢谢 楼上 亲自调试
1