当前位置: 技术问答>linux和unix
请问在Linux下如何用c++的标准输入输出流??
来源: 互联网 发布时间:2014-10-23
本文导语: 要包含那个头文件呢??好像没有iostream.h这个文件啊? |No need to modify your source, just give 'gcc' an optional switch '-I' to tell her search the path for those included headers, like this - gcc -I/usr/incl...
要包含那个头文件呢??好像没有iostream.h这个文件啊?
|
No need to modify your source, just give 'gcc' an optional switch '-I' to tell her search the path for those included headers, like this - gcc -I/usr/include/g++-2 -o streamtest streamtest.cpp I wonder if you use GNU C Compiler, since it would be able to see g++-2 header by default. If you really use gcc, add '-v' switch to make her show you everything she does, including the search paths and libs ...