问题 单项选择题

下列语句中,错误的是( )。

A) const int buffer =256;



B) const int temp;
C) const double * point;


D) const double * rt = new double(5.5) ;

答案

参考答案:B

解析: const是一个C++语言的关键字,它限定一个变量不允许被改变。使用const在一定程度上可以提高程序的安全性和可靠性。限定符声明变量只能被读,必须初始化。B选项中没有初始化,C选项为指向常量的指针,定义时初始化与否均可,如果是const * double point形式,则为常指针,必须在定义时进行初始化,A、C、D都正确。

完形填空

Before the 1850’s, the United States had a number of small colleges, most of them dating from colonial(殖民的)days. They were small, church connected institutions whose primary concern was to shape the moral character of their students. 

Throughout Europe, institutions of higher learning had developed, bearing the ancient name of university. In German university was concerned primarily with creating and spreading knowledge, not morals. Between mid-century and the end of the 1800’s, more than nine thousand young Americans, dissatisfied with their training at home, went to Germany for advanced study. Some of them return to become presidents of admired colleges-Harvard, Yale, Columbia-and transform them into modern universities. The new presidents broke all ties with the churches and brought in a new kind of faculty. Professors were hired for their knowledge of a subject, not because they were of the proper faith and had a strong arm for disciplining students. The new principle was that a university was to create knowledge as well as pass it on, and this called for a faculty made up of teacher-scholars. Drilling and learning by memorization were replaced by the German method of lecturing, in which the professor’s own research was presented in class. Graduate training leading to the Ph.D., an ancient German degree representing the highest level of advanced scholarly achievement, was introduced. With the establishment of the seminar system, graduate student learned to question, analyze, and conduct their own research. 

At the same time, the new university greatly expanded in size and course offerings, breaking completely out of the old, restricted curriculum of mathematics, classics, rhetoric, and music. The president of Harvard pioneered the elective system, by which students were able to choose their own course of study. The new goal was to make the university relevant(相关的) to the real pursuits(追求) of the world.

问答题 简答题