正在加载图片...
第5章数组与指针 例5.1维数组的引用 include <iostream. h> void maino int i, a[10]: for(i=0;i<10;i++) [=i*10; for(i=0;i<10;i++) cout≤<a[ cout < endl 程序运行结果为 0102030405060708090例5.1 一维数组的引用 #include <iostream.h> void main() { int i,a[10]; for(i=0; i<10; i++) { a[i] = i*10; } for(i=0; i<10; i++) { cout << a[i] << " "; } cout << endl; } 程序运行结果为: 0 10 20 30 40 50 60 70 80 90 第5章 数组与指针
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有