C++ Int - Math.
The Int class is used to hold Numeral values.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Creating a new int object.
Int32 i = 10;
Int objects work together with the Math classes.
Int32 i = 10 + 10;
Result value of i = 20;
More Complex Math examples using Int class.
Int32 i = 10 * 6 - 5;
Result value of i = 55;
Int32 i = 10 * (6 - 5);
Result value of i = 10;
Converting an Int Object value to a string value to be displayed in the TextBox Text field.
String^ valueString = Convert::ToString(i);
textBox1->Text = valueString;
|