#include <iostream> int main() { int a[10] = {0}; for(int i=0; i<10 ; i++) { std::cin>>a[i]; } for(int i=0; i<10 ; i++) { std::cout<<"a["<<i<<"]"<<"="<<a[i]<<std::endl; } return 0; }
标准输入输出文件重定向
原文:http://www.cnblogs.com/guozhikai/p/6100276.html