static_cast

closed account (zU5NwA7f)
Question: When I run it, it put green line and it say lldb. (By way I am using xcode)

Here is part of my program

cout << "Please enter the time in HH.MM" << endl;
cin >> time;

min=time-static_cast<int>(time);

if (min > 59) <===== Error
{
cout << " Your minute cannot be more than 59" << endl;

}
Topic archived. No new replies allowed.