Programmer127
January 2nd, 2007, 06:03 PM
I am new to vc++. When I first create a CLR console application, the source code looks like this:
------------------------------------------------------------------------------------------------
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Hello World");
return 0;
}
------------------------------------------------------------------------------------------------
I have a few questions about this.
First, in the line Console::WriteLine(L"Hello World");
what does the "L" do?
Secondly, if I wanted to read a line of input from the screen into a system::string, how would I do so?
If anyone can point me toward any basic information about programming a CLR Console Application, that would be great.
Thanks in advance!!
------------------------------------------------------------------------------------------------
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Hello World");
return 0;
}
------------------------------------------------------------------------------------------------
I have a few questions about this.
First, in the line Console::WriteLine(L"Hello World");
what does the "L" do?
Secondly, if I wanted to read a line of input from the screen into a system::string, how would I do so?
If anyone can point me toward any basic information about programming a CLR Console Application, that would be great.
Thanks in advance!!