c++ file i/o programming help needed
I'm new to standard C++. I seem to have a problem:
Whenever I create a file in Linux (gcc 3.2.2) as follows:
the file does not get created (f remains null). However
if I use 'touch' to create the file beforehand, it
succeeds. The code above was found in two textbooks
I am referring to.
Am I doing something obviously wrong ? I use Slack 9.0
and was coding in a non-root account.