VC++显示不出结果

来源:百度知道 编辑:UC知道 时间:2024/07/07 11:53:27
#include < iostream.h >
void main()
{
cout<<" dfdfdfdsafdsfaas!\n "<<endl;

}
就显示几个字母,就是不行.为什么?
不知道错哪了.就是没结果 DOS中只有press any key to continue

#include < iostream.h >
using namespace std;
void main()
{
cout<<" dfdfdfdsafdsfaas!\n "<<endl;

}

这样试试。

欢迎访问我的论坛:
http://www.chiensebloger.com
期待您的支持:)

#include <iostream>
using namespace std;

void main()
{
cout<<"dfdfdfdsafdsfaas!"<<endl;
}