Skip to main content
Code Review

Return to Answer

Commonmark migration
Source Link

###Code Analysis

Code Analysis

###Code Analysis

Code Analysis

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Your understanding of a graph is fine. Your understanding of implementing them needs some work. The whole point of a class and encapsulation is to make sure the object keeps and maintains state. Access to the state is controlled so that it can not by manipulatebe manipulated incorrectly.

  1. Are you giving ownership of the objects to the edge (unlikely).?
  2. Are the vertices going to be NULL (unlikely)?

Your understanding of a graph is fine. Your understanding of implementing them needs some work. The whole point of a class and encapsulation is to make sure the object keeps and maintains state. Access to the state is controlled so that it can not by manipulate incorrectly.

  1. Are you giving ownership of the objects to the edge (unlikely).
  2. Are the vertices going to be NULL (unlikely)

Your understanding of a graph is fine. Your understanding of implementing them needs some work. The whole point of a class and encapsulation is to make sure the object keeps and maintains state. Access to the state is controlled so that it can not be manipulated incorrectly.

  1. Are you giving ownership of the objects to the edge (unlikely)?
  2. Are the vertices going to be NULL (unlikely)?
Source Link
Loki Astari
  • 97.7k
  • 5
  • 126
  • 341
Loading
lang-cpp

AltStyle によって変換されたページ (->オリジナル) /