連續數組最大值

  #include <iostream> using namespace std; #define N 10 int main() {  cout<<"請輸入隨機產生的數的個數"<<endl;  int num,a[N];  cin>>num;    for(int i=0;i<num;i++)  {   a[i]=rand()%10;   if(rand()%2==1)    a[i]*=(-
相關文章
相關標籤/搜索