小弟最近在学c++,用的是英文教材,老师布置了一道题,但是不知道是什么意思?请大家指点?题目如下:Creat a program that defines two int arrays,one right after the other.Index off the end of the first array into the second,and make an assignment.Print out the second array to see the changes cause by this......请问大家这是要干什么?尤其是第二句,是什么意思?大家不要笑话我,我希望你们的指点!

解决方案 »

  1.   

    大概是这个意思:
        int a[10]={1,2,3,4,5,6,7,8,9,10}
        int b[10]={0}
        a[10]=100000;            
        a[11]=1000000;
        ……
       然后打印数组b中元素的直,看a[10]=100000;     a[11]=1000000;       
        改变了b中元素的直没有
      

  2.   

    建立一個程序,定義兩個數組a,b,其中一個(b)恰好在另一個(a)後邊,將a的下標越界,並賦值,輸出數組b,觀察該操作對數組b的影響.ok?
      

  3.   

    danieltang(停止思考) 
    你为什么用繁体字回复?