lab 2 start

This commit is contained in:
2022-03-16 09:57:09 -05:00
parent b917278ccf
commit 07ed0ce879
5 changed files with 173 additions and 0 deletions

29
Lab2/main.cpp Normal file
View File

@@ -0,0 +1,29 @@
/**
* @file main.cpp
* @author Trevor Barnes (barnestr@msoe.edu)
* @brief
* @version 1.0
* @date 2022-03-22
*
* @copyright Copyright (c) 2022
*
*/
#include <string>
#include <iostream>
#include "row.h"
using namespace std;
int main() {
int length;
cout << "Enter desired length for row matrix:" << endl;
cin >> length;
Row row1(length);
for(int i = 0; i < length; i++){
cout << "before seg fault" << endl;
// Will use access operator instead
cout << row1.row_data[i] << " ";
}
cout << endl;
return 0;
}