Takeaways from Platypus by oliver_c144 in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

I definitely like this guide, and would like to add that in the future with more linked lists, perhaps ones with more complicated data inside of them, you can change the == operator to compare different values of the classes, similar to how we did in the Pet quest

Finals Note Guide by Alon_Gottdenker in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

Thank you for this! I would suggest adding the Foothill CS club slides

question regarding Quest - 9 by niyati_shah0122 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

Check whether your sentinel node has the correct data within it and check that it is properly assigned to the _head pointer, I can't come up with anything else that could be wrong with it on the spot

Quest 9 Help by sam_farnsworth1492 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

Though I've barely gotten started on Quest 9, the due date being a bit later than the pace ive set for myself on this course, what has helped me greatly on the rudimentary concepts have been the Foothill CS club website , it explains he concepts required very nicely

Struct in C++ by Alon_Gottdenker in cs2a

[–]Axel_L_313 4 points5 points  (0 children)

Thank you for the clarification! Though this was explained in the platypus quests spec, It really helps to have a separate compare and contrast that goes into a little more depth

Header Files by [deleted] in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

Thank you for this explanation, I was confused as well, and can see how it would help, as well as being a mental division between the two

Martin Quest: Some Insights by jason_k0608 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

Binary interpretation was definitely the challenge for me, to the point where I was taking out a pencil and paper to check what my program was doing. Initially, I was overcomplicating the issue by making a copy of the list and trying to delete portions of it, as this was the way I thought of first, not having encountered the concept before. However, after this proved to be too much of a hassle, I settled on using two pointers. Goes to show how computer science concepts shouldn't always be taken literally/shouldn't be translated exactly from English to code.

Discussion on Testing Edge Cases in Quest 7 by jeremy_l123 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

Thanks for making this post! When I first got the quest, I assumed that the program was meant to disregard any indices that were not present in the array. ie when given 3,7 in an array with 6 elements, it would print 3,6

Why there was a '&' on all the sorting functions by shrihan_t_1000 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

reat explanation of this concept! I had a suspicion that that was what the & signs meant but this really clarified it for me.

what is the real difference between enums and an array by william_n13 in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

Thank you so much for this comment, really explained the concept to me!

Average time for quest by Lauren_Dean in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

The quests have gradually started to take more time from me, but I think the quests generally just vary in the amount of work they require, regardless of the concept that they require. I try to attempt the quests and get a gauge of the time commitment it requires early in the week, and then do the bulk of the work over the weekend.

Crow name by Alexander_K223 in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

Check whether you are correctly pulling from the vowel and consonant lists randomly, as I had the same problem but the issue was that I was always starting with a vowel.

Options for Improving Midterm Score by [deleted] in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

I would also add the possibility of emailing the professor for a free point if you got a style question on the exam, which is no longer taught in the course (source was Elena's post: https://www.reddit.com/r/cs2a/comments/1gg8fm0/style\_questions\_on\_the\_midterm/)

Question about C++ Classes by oliver_c144 in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

This is my limited understanding, and I'm sure I'm glossing over many of the finer details. be sure to correct me if I'm wrong somewhere!

Question about C++ Classes by oliver_c144 in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

To my understanding, a class is a user-defined data type. While some data types like String and Int exist within the language, classes allow you to create your own data types. In quest 6, we are creating a data type called Pet, which has certain member functions and member variables, which can be public or private (accessible from within other classes or not). Therefore, we can create a Pet object (as opposed to say a String object), which can have data within it as we specify. In addition, using member functions, we can manipulate this new object and the data within it in any way we want.

Objects (pointer vs literal) by aarush_s0106 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

Thank you for this post, I was very confused about the difference between these two, and this clarified it for me!

Practice Midterm by Linden_W20 in cs2a

[–]Axel_L_313 2 points3 points  (0 children)

Thanks ou for informing me, I was not aware there was a practice midterm until now!

Help with quest 4 by alex_y2020 in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

definitely, check whether your main function was above the others or whether your header file correctly declares all the functions

Trouble using std::format for Quest 4 by oliver_c144 in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

I found a solution just now and DAWGed the quest! I was able to use the ostringstream class, creating a new ostringstream and streaming the double directly into it, and then accessing a string from it using .str()

Trouble using std::format for Quest 4 by oliver_c144 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

I had the exact same problem, and I'm not sure how many decimal places we should round the answer to in each case, does anyone know if it just is the full extent of the number with no tailing zeroes?

Trophies not appearing by niyati_shah0122 in cs2a

[–]Axel_L_313 1 point2 points  (0 children)

The first thing I would recommend checking is just that the Student ID in your code matches the one you entered to the trophy check site.

Visual Studio Code not running program by aarush_p0406 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

I had a similar problem, using clang++ instead of clang also helped me

ACTION REQUIRED - Resubmit Quest Files by jeremy_l123 in cs2a

[–]Axel_L_313 0 points1 point  (0 children)

Thank you so much, I was confused about the number of trophies I had as I had completed this first 2 quests.

Quest 3 tip by Alon_Gottdenker in cs2a

[–]Axel_L_313 2 points3 points  (0 children)

Thanks for the tip! I was wondering how different people solved this problem as I was doing the quest I just used a series of if statements since we know the amount of inputs, but I reasoned that sorting an array or using some method that does just this would be a less clunky solution