下列程序的输出结果是( )。 #ificlude<iostream> using namespace std; int main() { cout.fill('*'); cout.width(5); cout<<oct<<100<<endl; return 0; }
A.**100
B.**144
C.100**
D.144**
第1题:
有如下程序: #include <iostream> using namespace std; int main(){ cout.fill('*'); cout.width(6); cout.fill('#'); cout<<123<<end1; return 0;} 执行后的输出结果是
A.###123
B.123###
C.***123
D.123***
第2题:
以下程序的输出结果是#include <iostream>using namespace std;int main(){ cout.fill('*'); cout.width(5); cous<<hex<<100<<end1; return 0;}
A.**100
B.***64
C.100**
D.64***
第3题:
有如下程序:#include <iostream>#include<iomanip>using namespace std;int main(){ cout.fill('*'); cout.width(6); cout.fill('#'); cout<<123<<end1; return 0;}执行后的输出结果是( )。
A.###123
B.123###
C.***123
D.123***
第4题:
下列程序的输出结果是【 】
include<iostream>
using namespace std;
int &qetVar(int *pint)
{
renurn *pint;
}
int main ()
{
int a =10;
getVar(&a) = 20;
cout<<a<<end1;
return 0; }
第5题:
下列程序的输出结果是【 】
include<iostream>
using namespace std;
int &get Var(int*pint)
{
return *pint;
}
int main()
{
int a=10;
getvar(&A) =20;
cout<<a<<end1;
return 0;
}