Question
I am trying to create code, that takes a file and places the contents into an array A. I am working in pieces and right
I am trying to create code, that takes a file and places the contents into an array A. I am working in pieces and right now, my program is giving me a segmentation fault. Does anyone know why this is happening or how i can fix this?
Thanks
#include
int getInvCount(vector
int main(int argc, char * argv[]) {
int counter = 0; vector
int n = sizeof(A) / sizeof(A[0]); cout << "Output: " << endl;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started