Hello
In VB when declare a variable we do this
Dim cFirst As Currency
cFirst = Val(txtFirst.Text)
how I can do this in Visual C++?
and
In VB when i want to display a second form I write this:
e.g form2.show
In Vicual C++ how I can do this?
Thx For Your Time
Sergio
Variable Declarations & Output
Page 1 of 12 Replies - 2661 Views - Last Post: 06 February 2006 - 06:04 AM
Replies To: Variable Declarations & Output
#2
Re: Variable Declarations & Output
Posted 05 February 2006 - 01:47 PM
Using C++, you declare a variable using it's type and the name...to declare a variable of the integer type, you would use:
To output that variable, it really depends on where you are outputting the variable to...if a console,it can be output using the output stream:
however, the process would be different if you wanted the output to display to a message box, or text box, or label...did you have a particular situation in mind?
int myVar;
To output that variable, it really depends on where you are outputting the variable to...if a console,it can be output using the output stream:
cout<<myVar;
however, the process would be different if you wanted the output to display to a message box, or text box, or label...did you have a particular situation in mind?
#3
Re: Variable Declarations & Output
Posted 06 February 2006 - 06:04 AM
In C++ I know this my question is for Visual C++ (windows form application)
This post has been edited by Sergio: 06 February 2006 - 06:09 AM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|