闲林会规划入西湖区吗?:vc++中哪里显示出运行的结果?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/04 16:36:44
例如我写了这么一个程序,
#include <iostream.h>
#include <string.h>

void main()
{
cout<<"The length of \"this is a string\" is :\t"
<<strlen("this is a string")<<endl;
cout<<"The size of \"this is a string\" is :\t"
<<sizeof("this is a string")<<endl;

}
用vc++6.0运行了一下,没有错误,但是运行的结果在哪里呢?用c的时候还用一个黑屏显示呢,vc++怎么没有了呢?

先编译,在联接,点击运行就有结果,象感叹号的那个按钮!!!
你的程序是没有问题的,能看到结果。我刚才已经运行过了。

ctrl+F5