c++ project need help. It is a team project but I just have to do my part on it. I will paste my part and you can look through the document and finish it.
/***************************************** * CSCE 2110 Group 22 * Project 1 Milestone Submission * Date: March 7, 2021 * Members: * Cale Floyd * Michael Gardner * Kerimjan Rejepov * Sakchham Sangroula ******************************************/ #include "read.h" #include <string> #include <sstream> #include <fstream> #include <iostream> using namespace std; void Read::read_config(string file_name) { string line; fstream config; int row = 0; string in_line; config.open(file_name,ios::in); while (getline(config,line)) { if (row == 0) { region_name = line.substr(line.find(":")+1); } if (row == 1) { time_limit = stoi(line.substr(line.find(":")+1)); } if (row == 2) { rate = stoi(line.substr(line.find(":")+1)); } row++; } } void Read::read_csv(string csv_name) { string line; fstream csv; csv.open(csv_name, ios::in); while(getline(csv,line)) { vector<char>characters; for (int index = 0; index< line.length(); index++) { if (line[index]!=',') { characters.push_back(line[index]); } } initial_setup.push_back(characters); } } vector<vector<char>> Read::get_setup() { return initial_setup; } //void Read::print_setup() //{ // for(int i = 0; i< initial_setup.size(); i++) // { // for(int j = 0; j < initial_setup[i].size(); j++) // { // cout << initial_setup[i][j]; // } // cout << endl; // } //} string Read::get_region() { return region_name; } int Read::get_limit() { return time_limit; } int Read::get_rate() { return rate; }