我想输出字符指针数组,求大神看一下程序哪儿错了
char #include<stdio.h>void main()
{
*available_resource[]={"coulor monitor",
"big disk",
"cray"
"on-line drawing routhing",
"mouse",
"keyboard",
"power cable"};
while(*(available_resource++)!=NULL)
{
while(*(*available_resource++)!='\0')
printf("%c",*(*available_resource));
}
}
Compiling...
CZhuanJiaBianChen_example.cpp
D:\vc6.0\Microsoft Visual Studio\MyProjects\CZhuanJiaBianChen\CZhuanJiaBianChen_example.cpp(81) : error C2105: '++' needs l-value
D:\vc6.0\Microsoft Visual Studio\MyProjects\CZhuanJiaBianChen\CZhuanJiaBianChen_example.cpp(83) : error C2105: '++' needs l-value
执行 cl.exe 时出错.
这是出的问题?