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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

This Code 5
MAGIC NUMBER 1
Newbie: Convert from string to integer 6
Template Question 3
Reflection on const variables 1
Having problems initializing a managed array 3
Switch Statement 6
Northwind connection issue 2

Back
Top