C++中的数组和vector有什么区别?差异的示例可能包括库、象征意义、能力等。数组Arrayscontainaspecificnumberofelementsofaparticulartype.Sothatthecompilercanreservetherequiredamountofspacewhentheprogramiscompiled,youmustspecifythetypeandnumberofelementsthatthearraywillcontainwhenitisdefined.Thecompilermustbeabletodeterminethisvaluewh