visual studio 2005 的几个问题

来源:百度知道 编辑:UC知道 时间:2024/06/17 20:36:25
请问一下
#include "iostream"

int main()
{
std::cout << "hello world!\n\n\n\n";
return 0;
}

这个程序在C++下编译成功 为什么在VS2005 中编译不成功呢?
代码应该怎样改?

2005 里面已经没有#include "iostream" 这东西了..

并且::这个东西在2005里好象也没有用.

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello world!\n\n\n\n");
}
}
}