Someone please call 911..........

This is a discussion on Someone please call 911.......... within the C++ Programming forums, part of the General Programming Boards category; Hi fellow Programmers. Hello it is Semma I have a question. How do I represents length of time in minutes ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    5

    Red face Someone please call 911..........(not really)

    Hi fellow Programmers.

    Hello it is Semma I have a question. How do I represents length

    of time in minutes and outputs two numbers that represent the

    same length of time in hours and minutes in a message using the

    user's name. Here is an example of the program working:


    What is your name? Nancy

    What time in minutes would you like converted ? 750

    Nancy, 12 hours and 30 mintes correspond to 750 minutes.

    Thank you........

  2. #2
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    hours = t / 60
    min = t % 60

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error C2664 - Trying to call an external Dll
    By jamez05 in forum C++ Programming
    Replies: 3
    Last Post: 08-08-2006, 07:07 AM
  2. system call
    By fnoyan in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2006, 11:53 AM
  3. Class won't call
    By Aalmaron in forum C++ Programming
    Replies: 3
    Last Post: 04-13-2006, 05:57 PM
  4. Iterative Tree Traversal using a stack
    By BigDaddyDrew in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2003, 05:44 PM
  5. call by reference and a call by value
    By IceCold in forum C Programming
    Replies: 4
    Last Post: 09-08-2001, 06:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21