-
I found out a solution to put numbers in 2 textboxes, using a button to add these numbers and show the result in a label in C++ doing this. So a conversion to string is made as oogabooga said also:
Code:
double Number1 = double::Parse(textBox3->Text);
double Number2 = double::Parse(textBox4->Text);
double result = 0;
result = Number1 + Number2;
resultlabel->Text = result.ToString();
I am using little of both C# and C++ to see the differences. My application is very dependant of fast calculations and thats why I really cant let go of C++ yet.
-
You realize that using C++ dot net (that's what you do when using your fancy GUI) will be much slower than using Native C++, too, right?
-
Console app?
My previous post was mistaken. Sorry about that.
At this point I would agree with Elysia's previous recommendation of a console application, especially if Coding is just learning C++. If I wanted a program to read in some numbers, do an extremely long calculation, and output a numeric result (perhaps to a file), I would definitely use a console. Good enough, so to speak.