|
|
back to boardHow I print output? Posted by tester 29 Oct 2006 13:58 I sumbit this codes and Got WA#1. WriteLn('1 40 700'); WriteLn('2 50'); WriteLn('30 600'); WriteLn('1 40 700'); WriteLn('2 50'); WriteLn('30 600'); WriteLn('1 40 700'); WriteLn('2 50'); WriteLn('30 600'); all Get WA#1. How I write output? Re: How I print output? Posted by vt-24 29 Oct 2006 14:50 "-" = " " "---1--40-700" "---2--50" "---30-600" Edited by author 29.10.2006 14:51 Re: How I print output? WriteLn(1:4, 40:4, 700:4); WriteLn(2:4, 50:4); WriteLn(30:4, 600:4); Re: How I print output? Posted by tester 29 Oct 2006 15:05 Thanks. Re: How I print output? Sample output in problem statement wil be corrected soon. Re: How I print output? Isn't it more precisely: ---1--40-700 ---2--50 --30-600 where "-"==" " How I print output? What can I do in C++ to output as in Pascal without hand-calculating the numbers of blanks? |
|
|