編寫程序輸入一個n*n的矩陣,求出兩條對角線元素值之和

//編寫一個程序輸入一個n*n的矩陣,求出兩條對角線元素值之和 #include <iostream> using namespace std; int main() { int num; cout << "請輸入對角矩陣的大小" << endl; cin >> num; int **p = new int*[num];//數組大小動態,二維 for (in
相關文章
相關標籤/搜索