Re: CISC 1110: Reorganized code #63 - Standard output not as expected

26 views
Skip to first unread message

Manor Perets

unread,
Oct 12, 2012, 11:22:27 AM10/12/12
to ar...@panix.com, CPP forum
The files size now is equal, 449 bytes (dependent on my identical input of the various dimensions), and file comp returns "Files compare OK" but CodeLabs is still not happy. (as comparison is OK I guess there's no need for cygwin).

You know, I'd like to compare to the original code CodeLab provided, before we started writing the functions. Then I'd be able to compare original output to modified. Would you have a copy of that? Naturally, the code provided by CodeLab was overwritten and I can't get it back.

BTW, CodeLabs does not show a link, in this case, to the first character that may be different.

Best wishes,
Manor Perets


On Fri, Oct 12, 2012 at 10:35 AM, <ar...@panix.com> wrote:
Well, if they're not the same size, then they're different!
So that confirms that there is some difference between your
modified code and the original.

Sometimes CodeLab has a link that shows the first character that
is different. Have you tried clicking that?
        -- David A.

PS: another possible approach you might take is to install cygwin on your system and use the diff command (it's from unix and it is far more comprehensive than "comp").

On Oct 12, 2012, at 10:06 AM, Manor Perets wrote:

> It's not helping yet. When comparing I get a message right away that files are not the same size, it does not bother with comparing characters.
> Didn't give up on it though.
>
> Best wishes,
> Manor Perets
>
>
>
> On Fri, Oct 12, 2012 at 7:46 AM, <ar...@panix.com> wrote:
> I hope my broadcast helps.
> On Oct 12, 2012, at 12:30 AM, Manor Perets wrote:
>
> > Hi,
> > I submitted my reorganized code and it was not accepted. Well, no big surprise on that, but I went over my code, comparing my cout lines to the original cout lines and they seem identical to me.
> > I accept that I must work hard to find any error but before I wrack my brains any further I just wanted to run this issue by you and hear that it is indeed just my problem and I must work harder.
> >
> > CODELAB ANALYSIS
> >
> > Remarks:
> >      ⇒     Checking output
> >      ⇒     Your standard output is not what was expected.
> > (I've even removed my code which united "endl << endl << endl;" on one line and copied your organized code.)
> > (As far as correct calculations, I've checked my code various times with various input and it makes sense. CodeLab would have called me out on that.)
> >
> > Best wishes,
> > Manor Perets
>
>


Manor Perets

unread,
Oct 12, 2012, 11:28:16 AM10/12/12
to bc...@googlegroups.com
Isabella, was your reorganized code accepted by CodeLabs? Anyone else?

Manor Perets

unread,
Oct 12, 2012, 12:05:44 PM10/12/12
to bc...@googlegroups.com, ar...@panix.com
Does anyone have the original code for problem 63, before any function implementation? I'd appreciate if you can post it. I'd like to see the output of that file as compared to my modified code with functions.

Manor Perets

unread,
Oct 15, 2012, 8:25:09 PM10/15/12
to bc...@googlegroups.com, ar...@panix.com
My problem was that I did not assign to shape the value back from getChoice. In my computer it still returned the correct answer simply because that info was at the top of the stack.
shape=getChoice("Choose shape [triangle, rectangle, circle]: ");

Reply all
Reply to author
Forward
0 new messages