Question: I use Xcode and am learning C++ Whenever I add a file to my project and try to run the code it always tells me

I use Xcode and am learning C++

Whenever I add a file to my project and try to run the code it always tells me that the file is not found. This is causing significant issues. Please someone help me.I use Xcode and am learning C++ Whenever I add a file

Xcode File Edit View Find Navigate Editor Product Debug Source Control Window Help o 142 Wed Feb 3 1:56 PM F examGrader) My Mac Finished running examGrader : examGrader + X I a main.cpp A examGrader examGrader main.cpp E correctAnswers.txt studentAnswers.txt > Products examGrader) examGrader) - main.cpp) No Selection 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 void readFile(char arr[], int MAX, string file); 9 int compareArrays(char correctAnswers[],char studentAnswers[], int MAX); 10 void displayGradingResult(int MAX, int correctCnt); 11 12 int main() { 13 const int MAX=20; 14 string file1="correctAnswers.txt", file2="studentAnswers.txt"; char correct Answers[MAX]; char studentAnswers[MAX]; 17 cout Products examGrader) examGrader) - main.cpp) No Selection 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 void readFile(char arr[], int MAX, string file); 9 int compareArrays(char correctAnswers[],char studentAnswers[], int MAX); 10 void displayGradingResult(int MAX, int correctCnt); 11 12 int main() { 13 const int MAX=20; 14 string file1="correctAnswers.txt", file2="studentAnswers.txt"; char correct Answers[MAX]; char studentAnswers[MAX]; 17 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!