Reading from console window...
can someone help me figure out what i'm doing wrong here:
everything else works fine so i'm just giving parts of the code...
here's part of my main function:
Here's part of the code from the readFile function:
int main(int argc, char* argv)
fname = argv;
aStarSearch.readFile(fname); //function in a class which needs the argument to main from the console window
The problem is that when the console window open up, i can't type anything there...if i hardcode the name of the file to be opened it works fine but in that case the console window doesn't really come into play because it doesn't expect any inputs from the user...
void readFile(char *openfile)
ifstream fin (openfile);
while (! fin.eof() )
am i using this wrong?