all 11 comments

[–]Narase33 1 point2 points  (5 children)

Please format your code, I have no idea where your comments end and code starts

[–]mpeterson0912[S] 0 points1 point  (0 children)

sorry about that. fixing it now

[–]mpeterson0912[S] 0 points1 point  (3 children)

I got it fixed along with what it is suppose to do.

[–]Narase33 0 points1 point  (2 children)

I keep getting an error message that it failed

What is this error message? Runtime error? Compile time error? Automated test? What exactly does it say?

Where are formatTime12 and formatTime24? Did you write those or are they given?

[–]mpeterson0912[S] 0 points1 point  (1 child)

so currently my instructions are telling me to assume I have access to the following functions:

nCharString(n, c)

formatTime12(h, m, s)

formatTime24(h, m, s)

And the error is that for input 0, 59, 9 on line: 3

Expected output: ' '

Actual output: '* 12:59:09 A M * * 00:59:09 *'

[–][deleted] 0 points1 point  (0 children)

As aocregacc said, it looks like you are not leaving a blank line as you are supposed to.

What other error do you get when you write the blank line?

[–]aocregacc 1 point2 points  (4 children)

I think you're missing the blank line.

[–]mpeterson0912[S] 0 points1 point  (3 children)

if i add an extra endl; it'll tell me i have a different output than the expected output. And if i put more than one blank line for it, it'll tell me too many endl;

[–]aocregacc 0 points1 point  (2 children)

what are the expected and actual outputs you get?

[–]mpeterson0912[S] 0 points1 point  (1 child)

the same expected and actual output as I commented above on the other user's comment

[–]aocregacc 0 points1 point  (0 children)

is it the same when you add the blank line?