I need help in timers or conversions
-
I want to make the user of the program be able to type in a number and let the timer count to the number but I keep on getting the wrong output. I put a int and string variable.
if(m_iCount == m_sCountTo)
Help:confused: [It is possible to represent everything in this universe by using 0 and 1] I'm going to live forever or die trying. -
I want to make the user of the program be able to type in a number and let the timer count to the number but I keep on getting the wrong output. I put a int and string variable.
if(m_iCount == m_sCountTo)
Help:confused: [It is possible to represent everything in this universe by using 0 and 1] I'm going to live forever or die trying.You can't compare an
int
to astring
(unless the appropriate overloaded operators have been implemented). -
I want to make the user of the program be able to type in a number and let the timer count to the number but I keep on getting the wrong output. I put a int and string variable.
if(m_iCount == m_sCountTo)
Help:confused: [It is possible to represent everything in this universe by using 0 and 1] I'm going to live forever or die trying. -
I want to make the user of the program be able to type in a number and let the timer count to the number but I keep on getting the wrong output. I put a int and string variable.
if(m_iCount == m_sCountTo)
Help:confused: [It is possible to represent everything in this universe by using 0 and 1] I'm going to live forever or die trying.I suggest you keep the counter and the target value in integer format. This way you can compare them easily and perform a lot of other operations like increment easily. You’ll need to convert from string to int, when the user enters the value. For display purposes you can either format the integer into a nice looking string, or display it directly. Lorenz Prem Microsoft Corporation