高普考題庫
102 年 102年公務人員高等考試三級考試暨普通考試・計算機概要
37下列以C++程式語言撰寫之程式執行後的輸出為何?#include <iostream>using namespace std;class P{public:P() { cout << 'B'; }~P() {cout << 'D'; }};int main(){P p;cout << '1';if (true){cout << '2';P p2;}cout << '3';return 0;}