Saturday, September 18, 2010

C++ Baisc Code 003 cout

/*this is a simple c++program
call this file sample.cpp
This is show how to use the namespace
*/
#include
using namespace std;

//A c++ program begins at main().
int main()
{
cout<<"C++ is power programming.";

return 0;
}

4 comments:

  1. previous code was used the prinf but from this code I used cout to diplay the text in the cmd screen

    ReplyDelete
  2. Always remember to use the

    F7 for compile

    Ctrl+ F5 for exectute

    ReplyDelete
  3. what is namespace used for?
    How can we understand the namespace easily?
    what is the namespace in the Java, C#?
    why do we need to use the name space?
    what is the chracterisitc of namespace?

    ReplyDelete