Hi every body.
The code written down (by C++/ CLR console).
How can I compile it by Windows Form.
Can any persn wants to help??
Thanks
Beginner
----------------------------------------------------------------------------------
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
int magic;
int guess;
Console::Write(L"Enter Your Guess Number : ");
guess=Convert::ToInt32(Console::ReadLine());
if(guess==7)
{
Console::WriteLine(L" Bravo it's Magic Number");
}
else
{
Console::WriteLine(L" Sorry Not Magic Number");
}
return 0;
}
Ashot Geodakov - 24 May 2007 02:19 GMT
Why can't you just create a brand-new project which is a Windows app, not Console? You'll see how the projects' main() functions are different.
"WELCOME ###" <fares@alphalink.com.au> wrote in message news:465140e2_4@news.chariot.net.au...
Hi every body.
The code written down (by C++/ CLR console).
How can I compile it by Windows Form.
Can any persn wants to help??
Thanks
Beginner
----------------------------------------------------------------------------------
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
int magic;
int guess;
Console::Write(L"Enter Your Guess Number : ");
guess=Convert::ToInt32(Console::ReadLine());
if(guess==7)
{
Console::WriteLine(L" Bravo it's Magic Number");
}
else
{
Console::WriteLine(L" Sorry Not Magic Number");
}
return 0;
}