Could anyone tell me why I am getting syntax error ? I just copied below code from book and tried to run on visual c++ 2008... but I am getting syntax error but it looks exactly same as book..
#include "stdafx.h"
using namespace System;
using namespace System::Text;
int main(array<System::String ^> ^args)
{
String ^m_Lang="C++";
int m_Y=2005;
Console::WriteLine("This is visual {0} {1}," m_Lang,m_Y);
Console::WriteLine(String::Concat("This is Visual," m_Lang, "," m_Y));
Console::WriteLine("This is Visual"+m_Lang+" " +m_Y);
Console::WriteLine(Math::PI.ToString("#.###"));
StringBuilder ^m_Builder=gcnew StringBuilder("This is visual c++");
m_Builder->Append(m_Y);
Console::WriteLine(m_Builder);