Home > Back-end >  0 start with 8 and 9 number cannot be assigned to an array, prompt "Error [C] Unit1. CPP (22) :
0 start with 8 and 9 number cannot be assigned to an array, prompt "Error [C] Unit1. CPP (22) :

Time:10-27

0 start with 8 and 9 cannot compile in the past, don't know where Settings, or a software problem,

Behind the other values can be compiled as 0 start with 8 and 9 doesn't compile,

Assigned to char, AnsiString, all other data types such as array tips "[c + + Error] Unit1. CPP (22) : E2325 Illegal octal digit"

8 and 9 opening can be compiled in the past, zero beginning with 8 and 9 cannot compile in the past, don't know where Settings, or a software problem,
Other values can be compiled, it is zero beginning followed 8 and 9 doesn't compile,

Example:
Char I [3];
I [0]=80;//you can compile by
I [1]=8;//hint "[c + + Error] Unit1. CPP (22) : E2325 Illegal octal digit"
I, [2]=00;//can compile (01-07 can compile)
I [3]=88;;//can be compiled through

CodePudding user response:

Forget that software version: c + + Builder6.0

CodePudding user response:

0 opening said 8 hexadecimal number 0 x begins said hexadecimal number

So there is no 08 and 09 this representation

88 and 80 is a decimal number, so I can

I [3] is crossing the line,

CodePudding user response:

0 x08 directly or 8
  • Related