Question: I have some code in c++ and I am getting an error when running the scripts I am given. I am getting an error on
I have some code in c++ and I am getting an error when running the scripts I am given. I am getting an error on line 10 and it says Aprog command not found. I am ussing linux system and using a basic text editor to write my c++ code. I am getting an output file to show up and be created but it is empty every time I run the scripts. Next paragraph is the instructions for what I am supposed to do.
You are to read the input data into an appropriate vector and then dump the data using an appropriate function. You will get 5 points for doing this and for having your name and other boilerplate attribution at the top of each program file.
You will get zero points if you dont do the right read/write or if you dont have your name in each file.
My code is listed below.
#include
void readFile(vector
void writeFile(vector
int main() {
vector
for (it = myvector.begin(); it < myvector.end(); it++) { //print the data from vector which has read from input file xinput.txt cout << *it << ' '; } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
