单项选择题

当需要将一个函数bool isnumber (char c)声明为内联函数时,则此内联函数的函数原型为( )。

A.enum bool isnumber (char c) ;


B.define bool isnumber (char c) ;
C.inline bool isnumber (char c) ;


D.extern bool isnumber (char c) ;
<上一题 目录 下一题>
热门 试题

单项选择题
假定MyClass为一个类,那么下列的函数说明中,( )为该类的析构函数。
A.void ~MyClass();
B.~MyClass(int n);
C.MyClass();
D.~MyClass();
单项选择题
有如下程序: #include <iostream> using namespace std; class Test public: Test() n+=2; ~Test() n-=3; static int getNum() return n; private: static int n; ; int Test::n=1; int main() Test* p=new Test; delete p; cout<<'n='<<Test::getNum() endl; return 0; 执行后的输出结果是 ( ) 。
A.n=0


B.n=1
C.n=2


D.n=3
相关试题
  • 阅读以下程序: #include <iostream.h...
  • 执行以下程序后,输出“#”号的个数是__...
  • 以下程序的执行结果是______。 #in...
  • 请定义一个函数名为A,返回值为int,没有参...
  • 以下程序段是函数返回a所指数组中最小的值...