a fatal error

so i wrote this program and its comming up with this for an error
LINK : fatal error LNK1168: cannot open \\eit-fc-ifsc\userdata\oxkyongmccl\My Documents\Visual Studio 2012\Projects\homework6final\Debug\homework6final.exe for writing

anyone know what is up?
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
  #include <iostream>
#include <fstream>
using namespace std;
int main (void)
{
	char key[21], id[12], responses[21];
int numstudents=0, numcorrect=0;
	ifstream testin, ansin;
	testin.open("test.dat");
ansin.open("answers.dat");
ansin>>key;
testin>>id>>responses[21];
	
	while(!testin.eof())
	{
		numstudents++;
		numcorrect=0;
		for(int i=0; i<20; i++)
			if(responses[i]==key[i])
				numcorrect++;
			cout<<id<<numcorrect<<endl;
		
testin>>id>>responses;
	}
	
cout<<numstudents<<endl;
}
You didn't leave a separate window open that's running your code, did you?
yeah I did. I got it figured out though thank you. :)
Topic archived. No new replies allowed.