方程3x2+[2b-4(a+c)]x+(4ac-b2)=0有相等的实根. (1)a、b、c是等边三角形的三条边; (2)a、b、c是等腰三角形的三条边.
A. 条件(1)充分,但条件(2)不充分。
B. 条件(2)充分,但条件(1)不充分。
C. 条件(1)和(2)单独都不充分,但条件(1)和(2)联合起来充分。
D. 条件(1)充分,条件(2)也充分。
E. 条件(1)和(2)单独都不充分,条件(1)和条件(2)联合起来也不充分。
查看答案
降低数据采集成本,提高数据流转及交换效率是XBR1的一个优势。( )
A. 对
B. 错
(操作员:系统主管;操作日期:2014年10月31日)新建账套。账套名称:新世纪科技有限公司会计制度:采用企业会计制度的单位本位币编码:USD本位币:美元启用会计期间:2014—01—01
请使用VC6或使用[答题]菜单打开考生文件夹proj2下的工程proj2。此工程中包含一个源程序文件main.cpp,其中有“书”类Book及其派生出的“教材”类TeachingMaterial的定义,还有主函数main的定义。请在横线处填写适当的代码并删除横线,以实现上述类定义和函数定义。该程序的正确输出结果应为: 教材名:C++语言程序设计 页数:299 作者:张三 相关课程:面向对象的程序设计 注意:只在横线处填写适当的代码,不要改动程序中的其他内容,也不要删除或移动“//****found****”。 #include <iostream> using namespace std; class Book{ //"书"类 char * title; //书 int num_pages; //页数 char * writer; //作者姓名 public: //********** found********** Book(const char * the title, int pages, const char * the writer): ______{ title =new char[ strlen (the_titie) +1]; strcpy(title,the_title); //********** found********** ______ strcpy(writer,the_writer); } ~Book(){ delete []title; delete []writer; } int numOfPages()const{ return numpages;} //返回书的页数 const char * theTitle () const { return title; } //返回书名 const char * theWriter () const{ return writer; } //返回作者名 }; class TeachingMaterial: public Book{ //“教材”类 char * course; public: TeachingMaterial (const char * the_title, int pages, const char * the_writer, const char * the_course) //********** found********** :______{ course = new char [ strlen (the_course) +i]; strcpy (course, the_course); } ~TeachingMaterial () { delete [ ]course; } const char * theCourse () const{ return course; } //返回相关课程的名称 }; int main () { TeachingMaterial abook ("C++语言程序设计", 299, "张三", "面向对象的程序设计"); cout <<"教材名:" << a book.theTitle() <<endl << "页数:" << a_book.numOfPages ()<< endl <<"作者:" <<a book.theWriter ()<< endl //********** found********** << "相关课程:" <<______; cout << endl; return 0; }
请使用VC6或使用[答题]菜单打开考生文件夹proj1下的工程proj1,此工程中包含源程序文件main.cpp,其中有ElectricFan(“电风扇”)类和主函数main的定义。程序中位于每个“//ERROR ****found****”之后的一行语句有错误,请加以改正。改正后程序的输出结果应该是: 品牌:清风牌,电源:关,风速:0 品牌:清风牌,电源:开,风速:3 品牌:清风牌,电源:关,风速:0 注意:只修改每个“//ERROR ****found****”下的那一行,不要改动程序中的其他内容。 #include <iostream> using namespace std; class ElectricFan { //"电扇"类 char * brand; int intensity; //风速: 0-关机 1-弱, 2-中, 3-强 public: ElectricFan (const char * the_brand) : intensity(0) { brand = new char [strlen (the_brand) +1]; strcpy(brand, the_brand); } ~ElectricFan() { delete []brand; } const char * theBrand () const { return brand; } //返回电扇品牌 int theIntensity () const { return intensity; } //返回风速 // ERROR ********** found********** bool isOn()const{ return intensity==0;} //返回电源开关状态 // ERROR ********** found********** void turnOff () const { intensity =0;} //关电扇 void setIntensity (int inten) { //开电扇并设置风速 if(inten>=1 && inten<=3) //ERROR ********** found********** inten = intensity; } void show () { cout <<"品牌:" << theBrand () << "牌" <<",电源:" << (isOn () "开": "关") <<",风速:" <<theIntensity() << endl; } }; int main(){ ElectricFan fan("清风"); fan.show(); fan.setIntensity(3); fan.show(); fan.turnOff(); fan.show(); return 0; }