PDA

View Full Version : C++, just having a little problem when reading from files =)



Sharpiedeluxe
October 12th, 2008, 05:13 AM
So as the title says, yeah I have an issue when executing my code with user input from a file. Everything compiles and executes fine when inputing through a terminal. Unfortunately, if I test with a file I receive this error:

./run_all_tests: line 51: calc: command not found

line 51 reads:

cin.putback (char); //char is from cin.peek(); putting it back into stream

So, anyone know anything about this? If you need me to post more then let me know. Thanks for the help.

Sinkingships7
October 12th, 2008, 05:23 AM
Post some more code. I don't see anything referenced called 'calc' in that line.

Sharpiedeluxe
October 12th, 2008, 05:41 AM
sorry, I think it's a problem with the testing script. I'll post more if I think that's not the issue.