Question 42: A C++ developer wants to explicitly specialize the template function below for the char * type:
来源:互联网 发布:太平洋软件下载中心 编辑:程序博客网 时间:2024/06/03 18:37
template <class T> void fn(T a){...}
Which of the following methods can the developer use to carry out this specialization?
A. void fn<char*>(char* a){...}
B. template <> void fn<char*>(char* a){...}
C. void fn<char*>(T a){...}
D. template <class T> void fn(char* a){...}
E. template <class T> void fn<char*>(T a){...}
B
- Question 42: A C++ developer wants to explicitly specialize the template function below for the char * type:
- Question 31: A C++ developer wants to handle a static_cast() operation for the class String shown below. Which of the following
- Question 16: Which of the following methods can a developer use to override the default terminate() function in C++?
- The plan for junior who wants to be a postgraduate
- (NOT CLEAR)Question 32: In C++, there is a standard global object wcin of type wistream. What is the template type of the wistr
- 警告The argument of type String[] should explicitly be cast to Object[] for the invocation of the vara
- (NOT CLEAR)Question 40: In the declaration below, p is a pointer to an array of 5 int pointers:
- Question 29: The C++ code below generates a compiler error. Which of the following solutions can be used to correctly access the
- Question 24: Which of the following template declarations provide the correct syntax to write a template class
- (NOT CLEAR)Question 44: What member function of std::fstream could a C++ developer invoke in order to change the target output f
- Question 4: Which of the following statements correctly describe the code below in C++?
- Question 37: In C++, which of the following statements regarding the code below are valid?
- Question 38: What is the output of the program below in C++?
- The method to fix "Please specify the assembly explicitly in the type name."
- Question 9: Which of the following statements correctly describe the results of executing the code below in C++?
- Question 15: Which of the following statements describe the results of executing the code snippet below in C++?
- the Undefined function 'caffe_' for input arguments of type 'char' 解决办法
- One case to use of the `this` pointer explicitly in template class inherit
- Cisco ISAKMP Keyring设置技巧
- Nginx编译参数详细介绍
- 不以物喜 不以己悲
- 使用Netbean进行Spring RCP开发
- ASP.net弹出消息对话框的方法
- Question 42: A C++ developer wants to explicitly specialize the template function below for the char * type:
- FCKEDITOR中文使用说明
- msu
- Design Pattern - Visitor(C#)
- DTree生成漂亮的动态树型菜单
- 多线程编程杂说2
- Question 43: Which of the following define valid string constants in C++?
- 不管路途多么崎岖
- C#中Split用法