奇怪的 数组问题
程序代码:
#include <iostream> #include <iomanip> using namespace std; int main() { int mb[10][8]={ {23,72,73,32,13,49,57,95}, {42,08,40,93,05,16,18,17}, {71,85,17,65,61,79,97,66}, {20,88,29,74,74,23,61,06}, {78,84,81,71,50,94,79,03}, {29,57,64,24,95,50,69,72}, {03,36,91,65,18,80,78,74}, {17,39,45,26,32,22,77,22}, {75,30,00,12,29,21,64,29}, {76,50,74,10,22,61,13,56} }; for(int i=0;i<10;i++) { for(int k=0;k<8;k++) { cout<<setw(2)<<mb[i][k]<<' '; } cout<<endl; } return 0; }编译后出现错误:
D:\VC6\MyProjects\qqq\main.cpp(8) : error C2041: illegal digit '8' for base '8'
我把 08 改为 8. 后 又变好了..?
这是怎么回事?
[ 本帖最后由 tcseay 于 2009-8-31 02:21 编辑 ]