This Code

  • Thread starter Thread starter WELCOME ###
  • Start date Start date
W

WELCOME ###

Hi all
From Beginner:
The below is simple program written with C++/ CLR Console; showing the
weights for each of 3 persons as:
============================
#include "stdafx.h"
using namespace System;

int main(array<System::String ^> ^args)

{

array<String^>^ names = {"Jim","Ted", "Bill"};

array<int>^ weights = { 103,100, 90};

Array::Sort(names, weights);

for each(String^ name in names)

Console::Write(L"{0, 10}", names);

Console::WriteLine();

for each(int weight in weights)

Console::Write(L"{0, 10}", weight);

Console::WriteLine();

return 0;

}

++++++++++++++++++++++++++++++++++++++

Now suppose I want to operate this code by "Window Form"

(I can prepare WindoeForm By Visual Studio I have)

Please what I have to do and how to operate the code by W.Form??

Also is there a certain book I can read showing this point in details??

Thanks

====================
 
Start a new Windows Forms project (C# would be a little closer to this C++
than VB) and take a look in the help index for Console, foreach and
ArrayList, for starters.
 
Back
Top