#include<bits/stdc++.h>
#include<iostream>
#include<iomanip>
#include<conio.h>
#include<Windows.h>
#include<windows.h>
#include<fstream>
using namespace std;
int main(){
FILE *name;
FILE *code;
string aa,bb;
string x,y;
name=fopen(“D:\\name.txt”,”r”);
code=fopen(“D:\\code.txt”,”r”);
for(;;){
if(_kbhit()){
int a=getch();
if(a==48){
fputs(x,name);
fputs(y,code);
}
if(a==49){
cin>>x>>y;
while(aa!=EOF){
aa=fgets(name);
bb=fgets(code);
if(aa==x&&bb==y){
cout<<“等率成功”;
return 0;
}
}
}
}
}
fclose(name);
fclose(code);
return 0;
}
请问我这哪错了?求大神!