海贼王艾斯打黑胡子:我在C++编程中遇到的问题??

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 23:47:39
我编好程序之后,运行执行.出现以下显示
--------------------Configuration: test9_1 - Win32 Debug--------------------
Compiling...
Error spawning cl.exe

test9_1.exe - 1 error(s), 0 warning(s)
哪位高手能告诉俺,俺就要考二级了,没想到遇到这个头疼的问题.
我用的是Microsoft Visual C++ 6.0
源程序如下:
#include<iostream>
using namespace std;

class A
{
protected:
int n,m;
public:
void set(int a,int b){m=a; n=b;}
void show(){cout<<m<<","<<n<<endl;}
/**********found**********/
};
class B:public A
{
int s;
public:
void set(){s=m*n;}
void shows(){cout<<s<<endl;}
};
void main()
{
B b;
/**********found**********/
b.set(4,5);
b.show();
b.set();
/**********found**********/
b.shows();
}

太抽象
其实给出源程序就可以看出了
你用的是TC??