C ++ Primer

xiaoxiao2021-03-05  27

1. Build-in array can not copy one to noother by using assignment operator.

E.G

Correct:

For (int index = 0; index <10; index)

Array0 [Index] = array1 [index];

WRONG: // error: Cannot Directly Assign One Array To Another

Array0 = array1;

转载请注明原文地址:https://www.9cbs.com/read-35942.html

New Post(0)