stdio.h not standard in C++?

前端 未结 4 543
感情败类
感情败类 2020-11-29 08:41

I know most compilers allow both:

#include 

//and

#include 

But someone argu

4条回答
  •  心在旅途
    2020-11-29 09:06

    The C++ standard library explicitly contains the C standard library, so is an entirely legitimate part of C++. And if you are talking about using #include in C++ code, then you shouldn't do that, cause that's C syntax, in C++ code, you should use always cstdio

提交回复
热议问题