rookie question
-
I have this program I have to write for school that accepts two integers. hours and minutes. I then have to output the format in 6:00 format. I'm only allowed integer division and and modulus division. I've tried everything I can think of but my output still looks like this.
6:0
Any tips? BINARY -- modified at 23:40 Saturday 22nd October, 2005 -
I have this program I have to write for school that accepts two integers. hours and minutes. I then have to output the format in 6:00 format. I'm only allowed integer division and and modulus division. I've tried everything I can think of but my output still looks like this.
6:0
Any tips? BINARY -- modified at 23:40 Saturday 22nd October, 2005 -
I have this program I have to write for school that accepts two integers. hours and minutes. I then have to output the format in 6:00 format. I'm only allowed integer division and and modulus division. I've tried everything I can think of but my output still looks like this.
6:0
Any tips? BINARY -- modified at 23:40 Saturday 22nd October, 2005That sucks - you have to either use some relatively advanced C++ stuff in iostreams, or use C ( i.e. use printf ). Christian Graus - Microsoft MVP - C++
-
That sucks - you have to either use some relatively advanced C++ stuff in iostreams, or use C ( i.e. use printf ). Christian Graus - Microsoft MVP - C++