C++关于iostream与iostream.h的区别

    技术2022-07-10  150

    此系列文章用于记录复习C++【当时学习未记录,现在忘了好多,哈哈】

    ---------------------------------------------------------------

    #include<iostream> //非标准输入输出流;;; //using namespace std; int main() { std::cout << "Hello world!" << std::endl; return 0; } #include <iostream> using namespace std; int main() { cout << "Hello world!" << endl; return 0; } #include<iostream.h> //标准输入输出流 然而codeblocks报错 fatal error: iostream.h: No such file or directory|

     

    Processed: 0.011, SQL: 12