Why does the name of a source file affect compilation?

前端 未结 4 1052
逝去的感伤
逝去的感伤 2020-12-11 02:04

I came across something really weird when I wrote a little lotto program in C++ called \"lotto.cpp\". Everything was fine until I wrote the write-to-file for my program. Whe

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-11 02:29

    Error number 21 (on MacOS X 10.7.2) is EISDIR: Is a directory.

    The name lotto seems to be a directory, not a file.

提交回复
热议问题