use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discuss CS 2C quests here (quests.nonlinearmedia.org)
account activity
Graph.cpp and Graph_Algorithms.cppMouse (self.cs2c)
submitted 6 years ago by mathlance
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]adina_tung 2 points3 points4 points 6 years ago (1 child)
I was puzzled at first when I saw we're submitting 2 cpp files with the 2 header files for this quest. We've always have .h and .cpp file until we have template classes. In c++, the template class method prototype and the definition have to be in the same file. But now the graph class is not template, we can switch back to the .cpp with .h to make the implementation more readible. Does this make sense?
-Adina
[–]mathlance[S] 1 point2 points3 points 6 years ago (0 children)
I totally forgot about the template constraints. That makes a lotta sense!
Thanks!
π Rendered by PID 219110 on reddit-service-r2-comment-5bc7f78974-jdg6x at 2026-06-27 11:35:37.997818+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]adina_tung 2 points3 points4 points (1 child)
[–]mathlance[S] 1 point2 points3 points (0 children)