cout未声明的标识符
程序代码:
// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 // #include "iostream" #include "stdafx.h" using namespace std; class Base1 { public: Base1(int D) { cout<<D; } ~Base1() {} }; class Base2 { public: Base2(int D) { cout<<D; } ~Base2() {} }; class Derived : public Base1, Base2 { public: Derived(int A, int B, int C, int D) : Base1(B), Base2(A), b1(D), b2(C) {} private: int b1; int b2; }; int main() { Derived d(1, 2, 3, 4); return 0; }