using std::setw; int main () { int n[ 10 ]; // n 是一個包含 10 個整數(shù)的數(shù)組 // 初始化數(shù)組元素 for ( int i = 0; i < 10; i++ ) { n[ i ] = i + 100; // 設置元素 i 為 i + 100 } cout << "Element" << setw( 13 ) << "Value" << endl; // 輸出數(shù)組中每個...
using namespace std; #define M 50//表長 typedef int shu; //寢室信息結構 typedef struct { shu ground;//地面衛(wèi)生 shu bed;//床鋪 shu article;//物品擺放 shu other;//其他 shu grade;//總成績 char member[50];//寢室成員 char number[10];//寢室號 int Total; }Student, St; Student S[M...