C Fix Errors Code Maincpp Include Specialarrayh Include Include Include Using Namespace St Q37197543

C++

how can I fix these errors

0/10 5: Testing sort() function ^ Input inputi.txt int 1 2 34 8765 9 10 11 12 16 15 14 13 17 18 19 20 Your output Sorted outp

: Running default main.cpp to ensure input1.txt is properly read into/printed from SpecialArray class 0/10 Input inputl.txt i

this is my code

main.cpp

#include “SpecialArray.h”
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int measureElementsPerLine(ifstream& inFile) {
   // Add your code here.
   string line;

   getline(inFile, line);

   int sp = 0;

   for (int i = 0; i < line.size(); i++)

   {

       if (line[i] == ‘ ‘)

  

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.