[试题]

若下面程序运行时输出结果为

1, A, 10.1

2, B, 3.5

请将程序补充完整 。

#include

using namespace std;

int main()

{

void test(int, char,double ( 8 ) );

test(1,'A',10.1);

test(2,'B');

return 0;

}

void test(int a, char b, double

C. .

{

cout<

}

参考答案与解析:

相关试题

下面程序运行时,若输入395,则输出结果是( )。

[单选题]下面程序运行时,若输入395,则输出结果是( )。A. 5 9 3B. 3 5 9C. 5 3 9D. 3 9 5

  • 查看答案
  • 下面程序运行时输出结果为______。 include include clas

    [单选题]下面程序运行时输出结果为______。 include include class Rect { public: Rect(int下面程序运行时输出结果为______。include<iostream.h>includeclass Rect{public:Rect(int l, int w){length=l; width=w;)void Print(){cout<<"Area:"<<length*width<<end1;}void operator delete(void*p){free(

  • 查看答案
  • 程序运行时,若依次输出5,20,则输出结果为 ______。

    [单选题]程序运行时,若依次输出5,20,则输出结果为 ______。A.A+B=5B.B+A=20C.A+B=25D.5+20=25

  • 查看答案
  • (11 )下面程序运行时输出结果为C:\Program Files is a d

    [试题](11 )下面程序运行时输出结果为C.:/Program Files is a directory请将程序补充完整。import Java.io.*;public class DirTest{public static void main(String[] args){F.ile myDir = new File( " C:/Program Files/ " );System.out.println(myDir + ( ( 11 ) .isDirectory() ? " is " : "

  • 查看答案
  • 下面程序运行时输出的结果为 C:\Program Files is a dire

    [试题]下面程序运行时输出的结果为C.:/Program Files is a directory.将程序补充完整。Import java.io.*;public class DirTest {public static void main(String[] args) {F.ile myDir=Flew File("C:/Program Files/");System.out.println(myDir+(______.isDirectory()?"is":"is not")+"a dir

  • 查看答案
  • ( 30 )下面程序运行时,若输入 395 ,则输出结果是Private Sub

    [单选题]( 30 )下面程序运行时,若输入 395 ,则输出结果是Private Sub Comand1_Click ()D.im x%x=InputBox (" 请输入一个 3 位整数 ")Print x Mod 10,x/100, ( x Mod 100 ) /10E.nd SubA. ) 3 9 5B. ) 5 3 9C. ) 5 9 3D. ) 3 5 9

  • 查看答案
  • 下面程序运行时,若输入395,则输出结果是Prirate sub command

    [单选题]下面程序运行时,若输入395,则输出结果是Prirate sub commandl_Click()D.im x%x=InputBox(“请输入一个3位整数”)Print x Mod 10,x\100,(x Mod 100)\10E.nd SubA.3 9 5B.5 3 9C.5 9 3D.3 5 9

  • 查看答案
  • 若程序运行时输入A值为6,B值为4,则A的输出结果为 ______。

    [单选题]若程序运行时输入A值为6,B值为4,则A的输出结果为 ______。A.6B.4C.3D.2

  • 查看答案
  • 若程序运行时输入A值为15,B值为10,则A的输出结果为 ______。

    [单选题]若程序运行时输入A值为15,B值为10,则A的输出结果为 ______。A.6B.10C.5D.1

  • 查看答案
  • 若程序运行时输入A值为9,B值为18,则A的输出结果为 ______。

    [单选题]若程序运行时输入A值为9,B值为18,则A的输出结果为 ______。A.9B.10C.18D.27

  • 查看答案
  • 若下面程序运行时输出结果为1, A, 10.12, B, 3.5请将程序补充完整