I know there are answers for this error already in other places on this forum, but I tried most of the solutions that I could find via the Search feature on this site, and I'm stumped. Here is my program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
//This program is designed to accept input of Student Names and 3
//test scores for each student, then calculate each students average
//and the average for the entire class.
//By Will
//COSC 1315
#include <string>
#include <iostream>
using namespace std;
int main ()
{
string StudentName;
string Done = Done;
int CountName;// CountScores,
int Test1;
int Test2;
int Test3;
float StudAvg, ClassAvg;
cout << "This program is designed to calcutlate the 3 Test Average\n";
cout << "of individual students and the average of the class as a whole\n";
for (CountName = 0; CountName <= 200; CountName++)
{
cout << "Please enter the student's name: ";
cin >> StudentName;
cout << "\nNow please enter the students 3 Test scores:\n";
cin >> Test1;
cin >> Test2;
cin >> Test3;
if (StudentName == Done)
{
CountName = 201;
}
}
system("pause");
return 0;
}
|
The program itself is not complete, but I can't test any aspects of my program because my Build Output states:
1>------ Build started: Project: Test Score Avg Calculator, Configuration: Debug Win32 ------
1> Test Score Avg Calculator.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\..\..\documents\visual studio 2010\Projects\Test Score Avg Calculator\Test Score Avg Calculator\Test Score Avg Calculator.cpp': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Is there an error in the code? Or could it be because the program isn't complete? I wouldn't think that would cause the C1083. I have even tried creating 3 different Projects without success. The Solution above, however, remained a constant via copying and pasting the text into each new Project. By the way, in case it's important, each Project is empty and has no Precompiled Header. If anyone can help, it will be greatly appreciated.