From c64ba9294946dd88f0f2e8f254cb74c09e1bed02 Mon Sep 17 00:00:00 2001 From: nitesh585 Date: Fri, 4 Dec 2020 22:13:09 +0530 Subject: [PATCH 1/2] single comment --- DFS.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 From d70a61b6ca81a0fc2f3313c1e8ef79edfc91997a Mon Sep 17 00:00:00 2001 From: nitesh585 Date: Fri, 4 Dec 2020 22:15:27 +0530 Subject: [PATCH 2/2] Change indentation --- dataabstruction.cpp | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) 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: "<