Code inside W.Form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • WELCOME  ###

    #1

    Code inside W.Form

    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<Syst em::String ^^args)

    {

    int magic;

    int guess;

    Console::Write( L"Enter Your Guess Number : ");

    guess=Convert:: ToInt32(Console ::ReadLine());

    if(guess==7)

    {

    Console::WriteL ine(L" Bravo it's Magic Number");

    }

    else

    {

    Console::WriteL ine(L" Sorry Not Magic Number");

    }

    return 0;

    }



Working...