0

hi, i am very new to C++, i know almost nothing, how do i get the compiler to accept time as an input from a user.??????
I have to write a program to calculate the time distace given 2 times

2
Contributors
5
Replies
6
Views
12 Years
Discussion Span
Last Post by Dave Sinkula
0

Read the input as a string and parse it into hours, minutes, whatever.

Parse??? How do i do that!?

0

Many ways; sscanf comes to mind.

i can use scanf - however i have no idea how to use tm_mins format into the scan f statement all the attempts i made the compiler has rejected

0

i can use scanf - however i have no idea how to use tm_mins format into the scan f statement all the attempts i made the compiler has rejected

I can't read your mind, nor can I see your code.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.