I need help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ConfusedChild
    New Member
    • Feb 2008
    • 1

    I need help!

    Okay so I'm having to write a program converting seconds into years, weeks, days, hours, & minutes and I can not get it working no matter what I do. I keep getting "class, interface, or enum expected. Any suggestions?
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    Originally posted by ConfusedChild
    Okay so I'm having to write a program converting seconds into years, weeks, days, hours, & minutes and I can not get it working no matter what I do. I keep getting "class, interface, or enum expected. Any suggestions?
    Syntax errors? Post a small example program that demonstrates the syntax error.

    Comment

    • RedSon
      Recognized Expert Expert
      • Jan 2007
      • 4980

      #3
      Originally posted by ConfusedChild
      Okay so I'm having to write a program converting seconds into years, weeks, days, hours, & minutes and I can not get it working no matter what I do. I keep getting "class, interface, or enum expected. Any suggestions?
      I suggest you read what the error message is telling you and try to solve the problem using that information.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by ConfusedChild
        Okay so I'm having to write a program converting seconds into years, weeks, days, hours, & minutes and I can not get it working no matter what I do. I keep getting "class, interface, or enum expected. Any suggestions?
        I don't think you can properly answer that question; suppose I have 31622400
        seconds; measured in days that is exactly 366 days. Is that 1 year and 1 day?
        In 2007 that was so, but in 2008 it is exactly one year.

        You need a point in time where you start measuring. You have to elaborate a bit
        on your problem.

        kind regards,

        Jos

        Comment

        Working...