#includeusing namespace std;#define Nu 100000int main(){ int a[Nu],k; cout<<"随机产生数组为:"; for(int i=0;i 100); a[i]=k==1?a[i]:-a[i]; cout< <<" "; } cout<
本文共 291 字,大约阅读时间需要 1 分钟。
#includeusing namespace std;#define Nu 100000int main(){ int a[Nu],k; cout<<"随机产生数组为:"; for(int i=0;i 100); a[i]=k==1?a[i]:-a[i]; cout< <<" "; } cout<
转载于:https://www.cnblogs.com/xiaowumao/p/4385636.html