Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

it fails to display the vector table int readTable() { int row, col; char col_c; ifstream fin(lines.txt, ios::in); // Read in the file into I

image text in transcribed

image text in transcribed

image text in transcribed

it fails to display the vector table

int readTable() { int row, col; char col_c; ifstream fin("lines.txt", ios::in); // Read in the file into I while (fin >> row) // per row fin >> col_c; col = convert(col_c); // to a slot number vector v; // a vector to fill char c; // one char from the file // ** Fill v with chars from the file (a for loop) for (int i = 0; i > C; v.push_back(c); //T[row][col].push_back(c); //cout v, ostream& ost) if (v.size() == e) // empty entry will be dashes for (int i = 1; i _Myfirstiter; *_Pnext; *_Pnext = (*_Pnext)->_Mynextiter) { (*_Pnext)->_Myproxy = nullptr; } Exception Thrown _Myproxy->_Myfirstiter = nullptr; Exception thrown: read access violation. _Pnext was Ox74734072 #endif // _ITERATOR_DEBUG_LEVEL == 2 Copy Details | Start Live Share session.... Exception Settings inline void _container_base12::_Swap_proxy_and_iterators(_container_base12& _Right) noexcept { Break when this exception type is thrown Except when thrown from: #if _ITERATOR_DEBUG_LEVEL == 2 1P3att2.exe _Lockit _Lock(_LOCK_DEBUG); #endif // _ITERATOR_DEBUG_LEVEL == 2 Open Exception Settings Edit Conditions _Container_proxy* _Temp = _Myproxy; _Myproxy = _Right._Myproxy; _Right._Myproxy = _Temp; if (_Myproxy) { _Myproxy->_Mycont = this; reading from lines.txt if ( Right. Myproxy) { No issues found int readTable() { int row, col; char col_c; ifstream fin("lines.txt", ios::in); // Read in the file into I while (fin >> row) // per row fin >> col_c; col = convert(col_c); // to a slot number vector v; // a vector to fill char c; // one char from the file // ** Fill v with chars from the file (a for loop) for (int i = 0; i > C; v.push_back(c); //T[row][col].push_back(c); //cout v, ostream& ost) if (v.size() == e) // empty entry will be dashes for (int i = 1; i _Myfirstiter; *_Pnext; *_Pnext = (*_Pnext)->_Mynextiter) { (*_Pnext)->_Myproxy = nullptr; } Exception Thrown _Myproxy->_Myfirstiter = nullptr; Exception thrown: read access violation. _Pnext was Ox74734072 #endif // _ITERATOR_DEBUG_LEVEL == 2 Copy Details | Start Live Share session.... Exception Settings inline void _container_base12::_Swap_proxy_and_iterators(_container_base12& _Right) noexcept { Break when this exception type is thrown Except when thrown from: #if _ITERATOR_DEBUG_LEVEL == 2 1P3att2.exe _Lockit _Lock(_LOCK_DEBUG); #endif // _ITERATOR_DEBUG_LEVEL == 2 Open Exception Settings Edit Conditions _Container_proxy* _Temp = _Myproxy; _Myproxy = _Right._Myproxy; _Right._Myproxy = _Temp; if (_Myproxy) { _Myproxy->_Mycont = this; reading from lines.txt if ( Right. Myproxy) { No issues found

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions