2

All, Forgive I am a newbie in the C++ world , I was finding a copy file source code here.

The first sample in the post used the ANSI C libary. So I would like to test this sample in my computer. But I found in my c++ project there is error says Can not open the source file cstdio.h. And I didn't found it in my c: disk. Should I need to install the windows sdk? BTW. My project is a WDK project. thanks.

Community
  • 1
  • 1
Joe.wang
  • 11,537
  • 25
  • 103
  • 180

2 Answers2

9

Make sure your code says #include <cstdio> and not #include <cstdio.h>.

If your code says #include <cstdio> and your compiler is looking for cstdio.h, then you urgently need to find a better compiler.

NPE
  • 486,780
  • 108
  • 951
  • 1,012
2

If you're using C++, the correct header name is <cstdio> (not cstdio.h).

cnicutar
  • 178,505
  • 25
  • 365
  • 392