#include iostream in C?
问题 In C++ we always put the following at the top of the program #include <iostream> What about for C? 回答1: Well, this is called the standard I/O header. In C you have: #include <stdio.h> It's not an analog to <iostream> . There is no analog to iostream in C -- it lacks objects and types. If you're using C++, it's the analog to <cstdio> . stdio man page GNU documentation on Input/Output on Streams See also this fantastic question and its answer, 'printf' vs. 'cout' in C++ 回答2: #include <stdio.h>