Sunday, March 18, 2012

Cout and the IOStream Object Library

The Cout command is instrumental in programming input/output classes in the iostream library. The c++config.h file in the \MinGW\lib\gcc\mingw32\4.6.1\include\c++\bits directory has links to the iostream object and have to be included accordingly.
#include<iostream>
using namespace std;
//#include<c++config.h>
int io_stream_check(){
    cout<<"Hello World";
    //std::cout << "Hello world" << std::endl;
    return 0;
}

No comments:

Post a Comment