This is a fairly simple program and everything was fine until i was asked to declare the variable "relays" as an integer after doing so the code does not give me the proper output but if i declare the variable as double it works just fine. what am i missing?
I don't see a problem with using static_cast, though his code should look more like static_cast<double>(relays)/50;
If you're going to trash on someone, you should justify it.
@gentleguy
Wow, why are you flaming at me...
1. No problem using static_cast. You're assuming I don't know what value is affected... without even asking. You just... think? that I don't know?
2. I already know you can use other features besides static_cast. If I use one method over another does that mean I don't know the other method?
3. Absolute lie.... what kind of person lies that someone is their brother?? I'm not your brother. What disruption? You're taking it a bit far... disruption?? Are you sure you're an adult?
4. You also reported me... without a good reason. (I'm pretty sure it's you)
I'm not surprised you've been reported.
@JayhawkZombie
Everyone has their way of whitespace. I personally like to have spaces when using operators. But I wasn't sure how to use whitespace when using static_cast
@gentleguy
So immature lol...
What are you saying... step brother?
Anyways I'm tired of this nonsense argument I will not reply anymore. Make your last reply.