原创 線性表逆置

問題描述:將一個線性表逆置,即:輸入1 2 3 4 5 6;輸出6 5 4 3 2 1;#include <iostream>#include <cstdlib>using namespace std;typedef int elemty

原创 線性表循環右移k位

問題描述:線性表循環右移k位,即:1 2 3 4 5 6 7 8 9右移3位後6 7 8 9 1 2 3 4 5 #include <iostream>#include <cstdlib>using namespace std;typed