¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
how to compare two variable like one one is from file and one is during run time of program.i m making a project using file in c
my issue is that i want to compare two vairables. 1 is i am entering during run time of prog and another is stored in a file. its a part of my project using files
1 Respuesta
0
reading from a file named "a":
#include <fstream>
using namespace std;
int main(){
ifstream fl("./a");
int var;
fl>>var;
fl.close();
return 0;
}