So i just started my project on a cpu sim , but right of the bat i ran into a problem
#include <cstdlib>
#include <fstream>
#include <iostream>
using namespace std;
/*
*
*/
int main(int argc, char** argv)
{
return 0;
}
void cpu()
{
}
void memory()
{
int memArray[1000];
ifstream infile;
infile.open("program.txt");
}
my ifstream is having trouble, i think it has to do with the headers but i dont know how to fix this , am kind of bearly picking up c++ again.
So any help is appriciated, ok between using netbeans ide, and i also already tried this with vi and the error i got is that "ifstream was not declated on the scope" or something along those lines, any help?