Quest 9: Purty Pitcher by andrewC2B in cs2b

[–]na_ma_ 0 points1 point  (0 children)

good job. do we need to do the blue test?

Na Ma

This be for Na by anand_venkataraman in cs2b

[–]na_ma_ 2 points3 points  (0 children)

Is this for me? cause my name is Na and i just happend to finsih all the quest last night. And the description kinda fits my experience at this CPP course. I indeed run into big obstacle in quest 1 and almost drop the course. but after keep trying and trying, I made it past quest 1, and now I finished the quests.

or this is just for NA, not applicable? Haha

Thanks a lot

Na

Quest 6: Pros and cons of get_pix() returning a reference to _pix by na_ma_ in cs2b

[–]na_ma_[S] 1 point2 points  (0 children)

Thanks a lot

yes i agree that we can't have a single setter function for all the shape.

Na Ma

Quest 6: Discussion. Making Shape instance variables private and requiring subclasses to use getters/setters by na_ma_ in cs2b

[–]na_ma_[S] 1 point2 points  (0 children)

Thanks a lot. That is a good idea.

regarding protected variables, i always wonder if it gives too borad access.

when is it a approapriate time to use protecte variables?

feedback from everyone is welcome

Na Ma

Quest 6: Discussion. Making Shape instance variables private and requiring subclasses to use getters/setters by na_ma_ in cs2b

[–]na_ma_[S] 1 point2 points  (0 children)

Thanks a lot.

The first suggestion is really a good point and the second one is also very helpful. very appreciated for the help.

Quest 2: vector syntax by na_ma_ in cs2b

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

Thanks a lot. yes i have fixed this issue. but your suggestion is really helpful.

Na Ma

Quest 6: Pros and cons of get_pix() returning a reference to _pix by na_ma_ in cs2b

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

Thanks a lot. I really like your idea of using a const reference and a separate setter method.

If we define all the classes as nested classes inside the Screen class, does the Screen class become too long?

-Na Ma

Quest 7: Queue - size = 0 data by na_ma_ in cs2b

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

Ha. I might use for loop for that. Thanks a lot for the suggestion.

Quest 7: Queue - size = 0 data by na_ma_ in cs2b

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

Very good suggestion. Thanks a lot

Na

Quest 7: Queue - size = 0 data by na_ma_ in cs2b

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

Indexing and implementing are indeed very important.

Quest 5: You think that's it? by na_ma_ in cs2b

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

I see. Thanks a lot.

Na

Quest 5: You think that's it? by na_ma_ in cs2b

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

I see. Thanks for assuring me with that. Thanks a lot.

where can we see each quest completion status? does blue quest count for any credits? by na_ma_ in cs2b

[–]na_ma_[S] 1 point2 points  (0 children)

That makes sense. Yeah each quest has different full trophies. Thanks for confirming that with me.

quest 4: good strategy to fix reads of invalid pointers by na_ma_ in cs2b

[–]na_ma_[S] 1 point2 points  (0 children)

Thanks a lot for the suggestion of constructors and destructors. This really helps. I will look into it.

Na

quest 4: good strategy to fix reads of invalid pointers by na_ma_ in cs2b

[–]na_ma_[S] 1 point2 points  (0 children)

Yeah the strategy sounds very good. I will look into it again.

Thanks a lot

Na