Skip to content

Commit 91e910e

Browse files
authored
Add Element struct for matrix representation
1 parent 3c8d8e9 commit 91e910e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CPP/data_structures/example.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using namespace std;
44

55
// Simplified version for demonstration
6+
67
struct Element {
78
int row, col, value;
89
Element(int r, int c, int v) : row(r), col(c), value(v) {}
@@ -85,4 +86,4 @@ int main() {
8586
cout << "please run the main program: sparse_matrix_operations.cpp\n";
8687

8788
return 0;
88-
}
89+
}

0 commit comments

Comments
 (0)