diff --git a/DFS.cpp b/DFS.cpp index 187bdc5..fb1a7a7 100644 --- a/DFS.cpp +++ b/DFS.cpp @@ -1,8 +1,7 @@ #include using namespace std; - -// Graph class represents a directed graph -// using adjacency list representation + +// Graph class represents a directed graph using adjacency list representation class Graph { int V; // No. of vertices diff --git a/dataabstruction.cpp b/dataabstruction.cpp index 02a41c3..9f9ac24 100644 --- a/dataabstruction.cpp +++ b/dataabstruction.cpp @@ -1,20 +1,22 @@ #include using namespace std; - class Sum -{ -private: int x, y, z; // private variables are providing data abstraction in this program + + +class Sum{ + private: int x, y, z; // private variables are providing data abstraction in this program public: -void add() -{ -cout<<"Enter two numbers: "; -cin>>x>>y; -z= x+y; -cout<<"Sum of two number is: "<>x>>y; + z= x+y; + cout<<"Sum of two number is: "<